Enable Sharing SMB through terminal

I'm looking for the shell command to enable SMB under the sharing options of system preferences. I've tried
do shell script "cd /System/Library/LaunchDaemons; launchctl load -w smbd.plist" with administrator privileges
And though it runs without error, it doesn't show as enabled under system preferences, or in the smbd.plist file. What am I doing wrong? Thanks!

With a Mac OS X server we have a similar problem here.
It´s like the finder doesn't understand ACLs with SMB, though it does understand ACLs with AFP. Everything works fine using SMB with CLI or mucommander.
I did the tests with a Mac OS Server 10.5.4 and 10.5.5 and clients with 10.5.4 with filesharing (smb and afp) and OD enable.
Using OD clients connecting to a share folder with ACLs and POSIX in a Mac OS Server, the results were the following:
* SMB, Finder with ACLs > Finder ignore ACLs
* SMB, Finder with POSIX > works fine
* SMB, CLI or mucommander > works fine
* SMB, from windows > works fine
* AFP, Finder, CLI or mucommander with ACLs or POSIX > works fine
I´ve tried to search it but it´s like very few guys have this problem and I coudn´t find any report from apple. I just need to know if this is a feature or a known bug because we are working with some big clients that demand an answer asap.
Any help, please ...
Thanks in advance

Similar Messages

  • How do I list local shared computers through terminal?

    I'm looking for a way to see Macs on the local network that have file sharing turned on that i could potentially connect to, through terminal.  I've looked into mount and showmount, but i haven't had any luck.  Any help is appreciated!

    OK; an additional requirement. Scripting.  Quoting from the dns-sd man page:
      The dns-sd command is primarily intended for interactive use.  Because its command-line arguments and output format are subject to change, invoking it from a shell script will generally be fragile. Additionally, the asynchronous nature of DNS Service Discovery does not lend itself easily to script-oriented programming.
         For example, calls like "browse" never complete; the action of performing a "browse" sets in motion machinery to notify the client whenever instances of that service type appear or disappear from the network. These notifications continue to be delivered indefinitely, for minutes, hours, or even days, as services come and go, until the client explicitly terminates the call. This style of asynchronous interaction works best with applications that are either multi-threaded, or use a main event-handling loop to receive keystrokes, network data, and other asynchronous event notifications as they happen.
         If you wish to perform DNS Service Discovery operations from a scripting language, then the best way to do this is not to execute the dns-sd command and then attempt to decipher the textual output, but instead to directly call the DNS-SD APIs using a binding for your chosen language.
         For example, if you are programming in Ruby, then you can directly call DNS-SD APIs using the dnssd package documented at <http://rubyforge.org/projects/dnssd/>.
         Similar bindings for other languages are also in development.
    Does that help get you where you want to be?  Calling into available Ruby or Python DNS-SD libraries would get you where you want, and there are other choices.  Off-hand, I don't know of a bash-friendly interface, but there may be one around.
    And stepping back from this request slightly, there are already distributed-management packages which allow connections to remote servers, and managing multiple servers as a unit.  With Apple, Apple's ARD tool is one solution, and there are other packages available for Mac OS X and Mac OS X Server and other Unix platforms.
    I'd also suggest considering ssh, as telnet is insecure, and as ssh can perform certificate-based and passphrase-based logins.

  • Windows Firewall doesn't work as advertised: "File and Sharing (SMB-in)" fails to restrict by user, computer or IP.

    Hello,
    I'm trying to understand whether I'm the one who's crazy, doing something wrong, or whether Windows Firewall was designed to be broken (and stay that way through Windows Server 2008 R2!)
    When I go to Windows Firewall with Advanced Security from the Start Menu and edit the Inbound Rule for "File and Sharing (SMB-in)", the result I am seeking is that I can restrict access by both user and computer.
    Upon enabling the rule, and selecting the "Allow the connection if it is secure" option (and nothing else), the firewall obliges by denying any and all attempts by other computers to map or browse files.
    When I enter the name of one PC in the Computers tab under the "Allow connections from these computers", again the firewall obliges and the said PC can now browse and map to shares on that server.  HOWEVER, now other computers on the network are able
    to do the same, as long as they have any set of verifiable credentials (like a local user/admin or domain user/admin, etc).  Trying to restrict by user or by IP yield almost identical results.  Both those who I do and do not want are able to access
    files on the said server.
    My question is this: how is this firewall rule supposed to work?  What do we have to do to actually make it accept and reject connections based on the criteria we have provided?
    My goal is to only allow SMB access to a user IF they log in from a particular computer or group of computers.
    Any help would be GREATLY appreciated!
    Waqqas

    I too find the same problem.  I enable the firewall rule, put in Local Addresses that I want to be able to get through the firewall to access the File shares, but it opens the firewall so any ip address can access the shares.  Anyone have an answer?
    And No, Niko Bellic,  checking the MSDN forum is NOT the answer!

  • Disabled Mac Hotkeys on iTunes through terminal

    So I had spotify and wanted to control spotify with the hotkeys instead of it getting confused with iTunes.  I disabled the hotkey control through terminal and all went well.  Now, that I am going back to iTunes, the hotkeys do not work.  Volume up and down go to the dashboard and such.  Does anyone have the code that will re-enable the hotkey support that I can enter in terminal?

    A phono input expects a much different signal than a tape input. The signal from the AirPort Express (AX) is much greater amplitude and has a different equalization curve than a phono signal.

  • Enabling a User through OIM API

    Hi I am trying to enable a user through OIM API, However the end date is already passed for that user, I am setting up a new end date through the Program (showm below). However the update user is not working (i am not sure).
    Map usermap = new HashMap();
    usermap.put("Users.User ID", User_id );
    Map grpmap = new HashMap();
    grpmap.put("Groups.Group Name", Group_Name);
    tcResultSet ts = userClient.findUsers(usermap); //find all users
    String existing_end_date = ts.getStringValue("Users.End Date");
    tcResultSet tg = groupClient.findGroups(grpmap); //find requireq group
    long ukey = ts.getLongValue("Users.Key");
    long gkey = tg.getLongValue("Groups.Key"); //find group key
    // ENABLE THE USER
    java.util.Date new_end_date = new java.util.Date(111,1,1);
    Calendar cal = Calendar.getInstance();
    cal.setTime(new_end_date);
    DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
    String Str1 = dateFormat.format(cal.getTime());
    String Str2 = existing_end_date + " 12:00:00";
    System.out.println(User_id+" OLD End Date:" + Str2 + " New End Date: " + Str1);
    Map usermap2 = new HashMap();
    usermap2.put("Users.User ID", User_id );
    usermap2.put("Users.End Date", Str1);
    userClient.updateUser(ts,usermap2);
    userClient.enableUser(ukey);
    I am getting the following error:
    U0000018 OLD End Date:2009-09-30 12:00:00 New End Date: 2011-02-01 12:00:00
    2/12/2010 15:02:53 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: The user cannot be enabled because the end date is passed.
    Not sure why it is happening. It looks like the Updateuser is not working, or something else?
    Please advise. Thanks in advance.

    Hi Suren,
    thanks for the note.
    I found that as soon as I enable the user, I am getting the followimg messages in the opmn logs:
    INFO,06 Dec 2010 10:55:41,841,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:41,944,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,402,[XELLERATE.JAVACLIENT],System Event Handler: Enabling the User
    INFO,06 Dec 2010 10:55:42,421,[XELLERATE.JAVACLIENT],System Event Handler: Validating Organization for an User.
    INFO,06 Dec 2010 10:55:42,427,[XELLERATE.JAVACLIENT],System Event Handler: Triggering Processes related to User.
    INFO,06 Dec 2010 10:55:42,439,[XELLERATE.JAVACLIENT],System Event Handler: Changing application data based on Organization change.
    INFO,06 Dec 2010 10:55:42,442,[XELLERATE.JAVACLIENT],System Event Handler: Auto-Group Membership Event.
    INFO,06 Dec 2010 10:55:43,715,[XELLERATE.JAVACLIENT],System Event Handler: Evaluating User Policies
    So, the access policies are getting evaluated, triggering provisioning processes.
    What I am planning to do is, to disable the access policies and try to run the Program.
    Because of this issue, my Program is throwing an error (until I looked into the opmn logs, it doesn't make sense).
    6/12/2010 10:55:50 oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    Thor.API.Exceptions.tcAPIException: Error occurred enabling Xellerate User instance.
    Regards
    Vijay Chinnasamy

  • Hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute

    hi, i have tryed to install os x leopard, (its a old imac) , disk utility is greyed out , my install dvd cant find any hdd to install on , my only way to format and configure is through terminal but dont know what commands to execute...
    i tryed diffrent commands such as diskutil eraseDisk JHFS+ Disk1
    diskutil list , wont show up my harddrive , i now its functionally cause it shows up in disk utility with name and i can get info about it , but everything is greyed out can only switch between "erase , partition , recover , Raid ,....
    when i click the apple in the top left corner the whole menu is greyed out... what to do ?  help me please
    Sincerly AppleNoob92
    p.s i have no experience in apple imac's at all never used before, but im kinda windows nerd so computers i understand but this imac make my insane, cant seem to find any solutions anywhere on the WWW....

    Your HD may be crashed, so you probably should use the oringinal install discs to run Apple Hardware Test in extended mode. If error codes appear this confirms a hardware failure. In addition you cannnot repair the HD using Disk Utility from the startup disk, you have to use the origninal Install discs that shipped with the computer or the most up-to-date version of OS X on a disc that you have.

  • Microsoft Exchange shared calendars through iCal on iPad or Mac

    This is surely not an original question, but -
    My company uses Microsoft Exchange.  I have synced it to my iPad for calendar, contacts, and email, and it works very well.
    We also use shared calendars, and I utilize this feature often via Outlook on my PC.  However ...
    1.  I'd like to be able to view MS Exchange shared calendars on iCal on my iPad.  Is this possible?  Obviously, no one will grant me permission to view their contacts or emails, but calendar-only is what we share.  Is this possible?
    2.  Is it possible to view MS Exchange shared calendars through iCal on a Mac?  I have a colleague who has an iMac with iCal synced to Exchange and it works great.  However, we do not know how to view shared calendars (from MS Exchange) through iCal.  Again, we want to share calendars-only - no email or contacts.  Can anyone help with this?
    THANKS SO MUCH FOR HELP.
    Jeff

    Apple does not support public folders of the type "mail" for their Apple Mail,iCal and Address Book

  • Hibernate macbook pro through terminal hibernatemode 25

    Hibernate macbook pro through terminal hibernatemode 25 on mountlion does it harm system

    The real lesson is: Don't do something you know nothing about.
    Open the Terminal and enter or paste:
    pmset -g
    Press RETURN. This will list your current settings. You are interested in the setting named "hibernatemode." Most likely you will find it is "3". If so then enter or paste:
    sudo pmset -a hibernatemode 0
    sudo pmset -a autopoweroff 1
    Press RETURN. Enter your admin password and press RETURN again.

  • Calling a WSSE Enabled Web Service Through a Java Proxy Class

    I am trying to create a client that can access a WSSE enabled web service through
    the generated java proxy. For now all I am asking for in the .wsse file is the
    username and password with the line <token tokenType="username"/>. In the client
    I am setting the username and password token exactly as the BEA documentation
    describes:
    UserInfo ui = new UserInfo("myuser", "mypassword");
    session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
    Yet I am getting the following error message when I try to run the client:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    EJB Exception: ; nested exception is:
    com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy
    requires Message to contain UsernameToken, UsernameToken not found in the Message.
    Can anyone tell me what I am missing?
    Thanks,
    John

    Hi John,
    In your standalone client, use the following two properties to send a
    user name and password to the service so that the client can
    authenticate itself: javax.xml.rpc.security.auth.username
    javax.xml.rpc.security.auth.password
    See the docs [1]
    Hope this helps,
    Bruce
    [1]
    http://edocs.bea.com/wls/docs81/webserv/security.html#1073863
    John H wrote:
    >
    I am trying to create a client that can access a WSSE enabled web service through
    the generated java proxy. For now all I am asking for in the .wsse file is the
    username and password with the line <token tokenType="username"/>. In the client
    I am setting the username and password token exactly as the BEA documentation
    describes:
    UserInfo ui = new UserInfo("myuser", "mypassword");
    session.setAttribute(WSSEClientHandler.REQUEST_USERINFO, ui);
    Yet I am getting the following error message when I try to run the client:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException:
    EJB Exception: ; nested exception is:
    com.bea.wlw.runtime.jws.wssecurity.exception.WLWWSSEException: Policy
    requires Message to contain UsernameToken, UsernameToken not found in the Message.
    Can anyone tell me what I am missing?
    Thanks,
    John

  • I have enabled pop ups through safari preferences but a website is still saying that they must be enabled. I have tried this on other browers after quiting and restarting after changing the preferences

    I have enabled pop ups through safari preferences but a website is still saying that they must be enabled. I have tried this on other browsers after quitting and restarting after changing the preferences

    How about extensions? Perhaps you have an adblock extension installed.
    Check Safari > Preferences > Extensions

  • Error when importing Shared Dimension through LCM

    We are using Hyperion Planning 11.1.1.3 with an EPMA application. We have one environment where all of the dimensions are in the Shared Library, and the application dimensions are shared from there (DEV environment). In another environment, we have the same application, but its using only local dimensions (UAT environment)
    We are looking to migrate some changes to members from DEV to UAT, but don't want to share the dimensions in UAT (yet anyways). Here is how I was going about migrating the dimensions:
    1. In Shared Services in DEV, exporting the dimensions from EPM Architect from Foundation Services (from under Dimensions (Shared))
    2. In Shared Services in UAT, importing the dimensions from the file system into EPMA from Foundation Services (into Dimensions (Shared)), then using the "Synchronize > From Shared Library" to push those changes to the application's local dimensions.
    When I import the file system from DEV into UAT, the import fails and gives me the following error message for the Account dimension (only trying the one dimension for now):
    REPORTED WITHOUT ERROR DETAILS
    Here is a link to the screenshot of the error: http://dl.dropbox.com/u/12604803/HSS-LCM-Error.jpg
    It appears that the LCM import does work as it creates the dimension in the Shared Library, but I am not sure why I am getting this error message.
    I also tried to import the exported Shared Dimension for Account directly into the application (rather than the Shared Library) by just moving the "Account" file from:
    <export file name>\resource\Dimensions (Shared)
    to
    <export file name>\resource\Application Metadata\Planning Applications\<appname>\Common Dimensions
    And this imports without any errors! I'd rather not go this way as it's more of a manual process, and I'd like to keep it as straightforward as possible.
    I have searched the error message on OTN, the Oracle Knowledge Base and Google, but haven't really been able to come across any real information.
    Any insight you may have would be greatly appreciated!

    More of an update. We have a sandbox environment as well, and I was able to import the Shared Dimensions through LCM without any issue on that server.
    I also tried rebooting the server with the issues, but still get that cryptic error message.
    I looked through the logs and saw this in the EPMA.log
    2011-03-31 15:51:13,194 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.hyperion.awb.web.lcm.ArtifactManager - Error code is AWB_WEB_ERR_LCM_IMPORT_ARTIFACTS_PATHNAME
    2011-03-31 15:51:13,194 [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] ERROR com.hyperion.awb.web.lcm.ArtifactManager - doImportArtifacts: Error importing 'Account' at path '/Dimensions (Shared)'
    Seems to be connected to the issue I am having, but couldn't find anything on OTN, Oracle KB or Google. Other imports to this environment work, so not sure why the pathname would throw issues.
    I also verified that EPMA and HSS on all environments are using the same version.

  • Sharing photos through email

    I run Windows XP and use msn for email.  I have Photoshop Elements 7 and when I try to share
    photos my computer defaults to verizon e-mail.  How can I change this so that I can use my contact list I have in my msn account?

    Thank you!
    Date: Tue, 31 May 2011 13:16:49 -0600
    From: [email protected]
    To: [email protected]
    Subject: Sharing photos through email
    try to go to edit-prefereces- sharing.  make sure its on adobe email service, change the email address from there. 
    >

  • SSL connection works through terminal and Firefox only

    I have issue with SSL connection.
    It works through terminal and Firefox only. Everything else requiring SSL is down including App Store. I can't fix the problem by updating software, nor reinstalling as softwareupdate and hdiutil mount patch you via SSL at the end.
    No apparent reason.... It all worked fine last night.
    Does anyone know what is it and how to fix it?
    Thanks.

    MurphyCooper,
    this might be worth a shot: boot your MacBook Pro into Recovery mode by holding down a Command key and the R key as it starts up. Once the Mac OS X Utilities menu appears, select Disk Utility. On the left-hand side of the Disk Utility window, select your internal disk’s boot partition (typically called “Macintosh HD”). On the right-hand side, press the Verify Disk button if it’s not greyed out; if it is greyed out, or if it reports that errors were found, press the Repair Disk button. Once the verification/repair is completed, exit Disk Utility and select Restart from the Apple menu to restart in normal mode. Has this made any difference?

  • What is the Command to disable Printer Sharing via the Terminal?

    What is the Command to disable Printer Sharing via the Terminal?

    cupsctl is the command.
    man cupsctl(8)
    Hope that helps.

  • Installing Client Combo 10.7.4 through Terminal?

    This is totally unacceptable!! I've had this Thunderbolt Update problem since Tuesday morning and still pulling my hair out from it. I have run out of options in fixing this. Ive been using SL for over a year and only upgraded to Lion last week before this update screwed up my Mac. I can't reinstall Lion from disc recovery because some else installed it and I don't have the apple id to re download it. My other problem is I don't have another mac to do the target disk mode. I have 700gb of unbacked up data and I can't lose everything. I have the client combo update 10.7.4 on disk and I downloaded it and have it in my downloads folder. My trouble is I've tried mounting it from the disk and updating but it's not working. I've also tried from the downloads section but im having a lot of trouble with terminal. Can someone kindly help me mount and update it through terminal in startup because the directions I've followed hasn't helped me. Shame on you apple for infecting us with such a small screw up but causing massive problems. Release a fix to go back to previous settings!!

    Have you got issues? I've clearly said it's not and it was installed just to check out Lion and see how it was. Your making speculations about something that's not so if your not going to help don't say anything. I own a $3000 Mac as if a $29 operating system is going to be much and if they do things right maybe they will deserve it then. If Apple had released a working update with no bugs everyone else having the same problem would be stress free. 

Maybe you are looking for

  • The new hard drive is in - now what?

    Hi everyone, Please bear with me. I've suddenly become possessed by the idea of taking apart a Mac and putting new stuff in there. I am a complete novice in this respect, but I figure everyone has to start somewhere, right? I've got an iBook G3 Clams

  • Assigning existing G/L account to another company code

    I have been asked to assign an existing G/L account, which belongs to Company code A to another Company code B. G/L account is created at Chart of accounts level. Is there a way to do it without having to create the G/L account again for Company code

  • My phone is saying a number is invalid when its always worked before

    so i was talking to this person and then i fell asleep around 12AM i get a txt from them and i try to txt them back and it keeps saying that there number is invalid but it has always worked before and when i try to call them it rings once or twce the

  • Pdf highlighting question

    When a highlighted pdf, highlighted in Acrobat Professional 8.0, is imported into InDesign CS3, the highlighting no longer shows. Is there some way to keep this highlighting? I am on a Mac with OS X Leopard. Thanks.

  • Your Music -- Album View under Artists [iOS]

    When navigating the "artists" menu under "Your Music," please group the albums together when there is more than one so we can quickly find and play a specific album, rather than just placing all the songs by that aritsts in a list.