Unix command for turning file sharing off

Is there a Unix command I can use to turn off file sharing on Leopard ( as well as Tiger ) laptops? I don't mean a command to kill it for the session, I need it off even if the system is restarted. Yes, I can do it though the Preferences, but I need to do it to over 200 some laptops. We have ARD and if we had a Unix command to send to turn file sharing off that would be helpful. Thank you.

There is a CLI for just about everything. From the [OS X Leopard Security Configuration Guide|http://images.apple.com/server/macosx/docs/LeopardSecurity_Config20080530.pdf]:
To disable FTP.
launctl unload -w /System/Library/LaunchDaemons/ftp.plist
To disable SMB.
defaults delete /Library/Preferences/SystemConfiguration/com.apple.smb.server EnabledServices
launctl unload -w /System/Library/LaunchDaemons/nmbd.plist
launctl unload -w /System/Library/LaunchDaemons/smbd.plist
To disable AFP.
launctl unload -w /System/Library/LaunchDaemons/com.apple.AppleFileServer.plist

Similar Messages

  • ARD-Unix Command for Energy Saver Settings

    I need to take out the schedule for turning on and off 100 + iMacs. The setup was done with managed preferences in OSX server but cannot be taken off now. Is there a way to turn this off using a unix command with ARD? I've been doing one by one with ARD!

    Use ARD to send the Unix command systemsetup -help
    This will return a bunch of different commands for you to look at that are related to power and energy saving settings. Make sure you send the command as the root user
    You can always read the man files for the pmset command using your Terminal app. Also check out this page too:
    http://www.hmug.org/man/1/pmset.php

  • Where in gods name is the homesharing button, I see a little cloud that you cannot click on and tells you what account you have but thats is. There's an option for turning on and off homesharing, but no button to access the actual library of the other PC

    Where in god’s name is the homesharing button, I see a little cloud that you cannot click on and tells you what account you have but that's it. There's an option for turning on and off homesharing, but no button to access the actual library of the other PC. On either PCs. Both are logged in and both are registered for homesharing. however because apple keeps updating and moving things around for no reason there appears to be no way of accessing the homsharing button in the latest version of itunes. the website refers to " Once set up, all the libraries from your computers you've enabled Home Sharing on will show up in the SHARED area of iTunes:" well I have searched all over in the recent itunes versions and there is no "shared area" to be found.
    Please find the attachment of a screen cap of my itunes.
    If anyone can help by telling me where it has been moved to or if it even still exists that would be much appreciated.

    Welcome to the Apple Community.

  • I've installed Mavericks on my Mac Pro. It works well, generally, but will not stay sleeping! Pressing the power button twice sometimes extends the sleep mode but even that seldom results in a full overnight sleep.  File sharing off. What else can help?

    I've installed Mavericks on my Mac Pro. It works well, generally, but will not stay asleep! Pressing the power button twice sometimes extends the sleep mode but even that seldom results in a full overnight sleep.  File sharing off. What else can help?

    Hi fremley,
    Thanks for visiting Apple Support Communities.
    This article may be helpful with determining why your Mac Pro doesn't stay in sleep mode:
    Mac OS X: Why your Mac might not sleep or stay in sleep mode
    http://support.apple.com/kb/HT1776
    Some things reset the sleep timers, preventing the computer from sleeping:
    Hard drive access (even if you're not using the computer, a running application might be accessing your drive, such as when downloading a large file or listening to music in iTunes)
    Moving the mouse or using a portable Mac's trackpad, pressing a mouse button, or pressing a key on the keyboard
    Some System Preferences settings (see below)
    Open applications (see below)
    Input devices (see below)
    Expansion cards (see below)
    Additional drives, such as USB, FireWire, DVD, or CD drives (see below)
    Best Regards,
    Jeremy

  • I forgot to turn file vault off,  Recovery HD is locked

    I recently erased Macintosh HD to reinstall ML, however, when I tried to install ML, it says the recovery HD is locked. I member encrypting the HD using Filevault. I still have the recovery keys but I erased the macintosh HD without turning file vault off
    can I unlock the recovery HD using file vault recovery keys or should I kiss the macintosh HD goodbye??

    Try this
    So while in Recovery Mode, open Terminal , locate the logical UUID (example: 111111-2222-3333-444444444444 ) of the disk to unlock.
    "diskutil coreStorage list" will give you the UUID. After that you can unlock the drive with:
    "diskutil coreStorage unlockVolume <YOUR_UUID>"
    You will be asked for the Filevault password and yes, this prompt will accept your passwd if you type it right, at least you can test and see what you type in terminal while not in the password prompt.
    https://discussions.apple.com/thread/3348646?start=0&tstart=0

  • TS2972 Apple TV (2) works great with everything BUT iTunes on my computer, AND I can turn Home Sharing Off and On multiple times and NOTHING show up under "shared" and NOTHING shows up under Computers on Apple TV???

    My Apple TV (2) works fine with my iPad and iPhone.
    My iTunes syncs with my iPad and iPhone.
    I have turned "Home Sharing" off and on multiple times - of course using the same AppleID - and NOTHING shows up under Shared (and then Shared goes away) and NOTHING shows up under "Computers" on Apple TV?
    Why aren't Apple TV and iTunes smart enought to work with each other on the same network?  This should not be this difficult...

    I think I am having the same problem.
    My issue: since updating the software on ATV, I get an issue where shortly after starting a movie or video of some sort streaming from iTunes on my iMac the vid stops and Apple TV tells me that I need to connect to my Home Sharing account.  Sometimes I can fix it by turning Home Sharing off and back on in my settings.  Sometimes I need to completely reboot the AppleTV!
    Any suggestions???

  • UNIX command for Energy Saver settings - Set Schedule

    Using ARD 3, can anyone help me with a UNIX command for setting the scheduled sleep and wake times for 10.4 clients?
    Thanks,
    Josh

    Thanks for getting me on the right track, I've been working with pmset for a couple days now and I'm having some problems getting my basic schedule that I'd like to work. I'm hoping for another nudge in the right direction. Here's the scenario:
    I need the computers to wake at 7am on weekdays and to sleep at 3:30pm on weekdays as well. I've also got an addition to make the displays sleep after half an hour of inactivity, Here's what I'm trying.
    pmset repeat wake MTWRF 7:00:00;
    pmset repeat sleep MTWRF 15:30:00;
    systemsetup -setdisplaysleep 30;
    I've been trying to push this out as a batch of commands in a template which would be slick, but the problem I'm having is that the two pmset commands don't get along and whichever one is run last cancels out the other. In the actual System Prefs of the machine I'm sending the commands to, there are the two check boxes for Wake or Power On and the other for Sleep or Power Down but I can't get them both to be checked from my UNIX commands.
    Could anyone please help, I feel like I'm so close!
    Regards,
    Josh

  • Unix Command for tracing WebIntelligence Server

    Hi All,
    Please can any one tell me that what is the Unix command for tracing WebIntelligence Server. I know we use -trace parameter. But where do we use this parameter? With which script do we use it? Please give me complete command for the same.
    Thanks & Regards,
    Ani

    Hi
    Refer "To configure server tracing through the command line"  page number 207 in http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf
    This guide is for Windows but should be same for UNIX
    Regards
    Ashiwni

  • Broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

    broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

    broked button that use for turn on e off from Ipod Touch. One friend off mine gave it at february 2011. some can help me what can I do? there is tecnical assistance in Brazil? It didn't fall.

  • If I turn home sharing off on a desktop do i earn the extra home sharing back (since I can only connect my iphone to up to 6 devices?)

    If I turn home sharing OFF on a desktop do I earn one of my home sharing capabilities back? From what I understand I can only home share with my IPHONE on up to 6 devices.
    Thank you!

    mazwig wrote:
    I just want to know if I turn off iMessages and iCloud Back up, and ONLY use SMS myself and my family just SMS's me - and do this on my PHONE ONLY and not touch his ipad (so he doesn't know), if he will get any of my messages I send or receive on his ipad please. Its just a temp thing and I just want to take action myself on my own phone and want to know if this will work. Does anyone know?
    SMS messages will not go to the iPad Mini. It's not capable of receving them. If you have access and can do it without it causing a problem, remove your iPhone from the Apple ID Support profile:
    Go to: https://supportprofile.apple.com/MySupportProfile.do
    Log in if not already logged in.
    Click on "Edit Products"
    Click on the "X" to the right of the product.
    Click "Unregister"
    If anyone in your family uses iMessage, they will go to both you and your boyfriend unless you do that.
    To be completely safe, you may want to simply use an alternate message app such as Skype, Viber, Whatsapp (assuming everyone has a smartphone) until the issue is resolved. Google Voice will also allow you to send and receive texts to another number on your phone.
    Best of luck.

  • Unix command to turn OFF Software Update

    I've browsed through the networksetup -help and the systemsetup -help files and can't find anything that would allow me to send a unix command that would turn automatic software update off? Anyone got any thoughts?

    Send:
    softwareupdate --schedule off
    and that is indeed a doubled hyphen in front of "schedule".
    The command is user specific, so you would have to turn it off for every user on the system. I don't know of a global way to turn it off for all users at once.
    Regards.
    Message was edited by: Dave Sawyer

  • Unix command to turn "off" caps lock or turn it "on" on lab machines

    Hi,
    I'd like to be able to send a unix command to a lab of panther eMacs. I'm using Apple Remote Desktop 3.2 I would like to send both "turn on cap locks" to all the machines, or "turn off cap locks to all the machines.
    Many of my "Send Unix Command" are applescripts (osascript....) so either a unix command or applescript command would be welcome.
    Thanks!

    Well, I've been busy trying some things and found a beautiful little applescript that will turn off caps lock on 10.4 machines and newer. I'll paste it in below. Here's the problem...
    I can't seem to get it to run in ARD as a unix command. (I put the osascript as first line when I pasted it in... This usually works for sending applescript commands)
    So, any ideas on how to get it to run as a unix command??
    IS THERE ANYWAY TO GET THIS TO WORK ON PANTHER MACHINES?? (they don't have the "modify keys..." button in the keyboards and mice pane of sys prefs). The bulk of our machines (over 300 are eMacs running panther).
    *** script ******
    tell application "System Preferences"
    activate
    set current pane to pane "com.apple.preference.keyboard"
    end tell
    tell application "System Events"
    tell application process "System Preferences"
    get properties
    click button "Modifier Keys…" of tab group 1 of window "Keyboard & Mouse"
    tell sheet 1 of window "Keyboard & Mouse"
    click pop up button 1
    click menu item "No Action" of menu 1 of pop up button 1
    delay 3
    click button "OK"
    end tell
    end tell
    end tell
    tell application "System Preferences" to quit

  • UNIX command for disabling Firewall in Leopard?

    I'd like to use ARD to send a unix command to all my Macs running Leopard that will set the OS's application firewall to "allow all incoming connections." I believe that's the default setting, but I've run into some machines that are setting specific access - not sure how, don't really care, just want to turn it off.
    I've been reading up on /usr/libexec/ApplicationFirewall/socketfilterfw but the Help seems incomplete and I'm not sure this will accomplish what I'm after.

    defaults write /Library/Preferences/com.apple.sharing.firewall state -boolean No
    followed by a reboot works like a charm. thanks for you help.

  • Best Practice For Secure File Sharing?

    I'm a newbie to both OX X Server and File Sharing protocols, so please excuse my ignorance...
    My client would like to share folders in the most secure way possible; I was considering that what might be the best way would be for them to VPN into the server and then view the files through the VPN tunnel; my only issue with this is that I have no idea how to open up File Sharing to ONLY allow users who are connecting from the VPN (i.e. from inside of the internal network)... I don't see any options in Server Admin to restrict users in that way....
    I'm not afraid of the command line, FYI, I just don't know if this is:
    1. Possible!
    And 2. The best way to ensure secure AND encrypted file sharing via the server...
    Thanks for any suggestions!

    my only issue with this is that I have no idea how to open up File Sharing to ONLY allow users who are connecting from the VPN
    Simple - don't expose your server to the outside world.
    As long as you're running on a NAT network behind some firewall or router that's filtering traffic, no external traffic can get to your server unless you setup port forwarding - this is the method used to run, say, a public web server where you tell the router/firewall to allow incoming traffic on port 80 to get to your server.
    If you don't setup any port forwarding, no external traffic can get in.
    There are additional steps you can take - such as running the software firewall built into Mac OS X to tell it to only accept network connections from the local network, but that's not necessary in most cases.
    And 2. The best way to ensure secure AND encrypted file sharing via the server...
    VPN should take care of most of your concerns - at least as far as the file server is concerned. I'd be more worried about what happens to the files once they leave the network - for example have you ensured that the remote user's local system is sufficiently secured so that no one can get the documents off his machine once they're downloaded?

  • Unix commands for Teachers?

    Anyone know a unix command to lock the volume on a client at a certain level? I have a script to "set" the volume. I don't want my students to be able to turn it back up.

    Have you tried using the man pages for the various commands? At the Unix command line, type "man top" (or "man <<executable name>>") and you'll get the Unix manual pages for each command. Those explain the purpose of the commands, the options and syntax, etc.
    Justin

Maybe you are looking for

  • Sy-ucomm

    hi, may i know how to write the below syntax. if the first sy-ucomm is 'CON' and the following sy-ucomm is 'SAVE' then only will continue the processing. the first sy-ucomm happens is when a dialog box asking for confirmation. after user click a butt

  • Error while installing Solaris 10 using Solaris CD

    I'm getting an error while installing Solaris 10 in an Ultra 10 box. I have Solaris CDs (Total 4) and I have installed Solaris 10 in a Ultra 250 box , I did not get any problem. That means CDs are fine. But when I try to boot the CD 1 from bootPROM m

  • Save multiple times (save as)

    Isn't there a way in iPhoto to perform a "save as" function? I have several photos that I would like to save and print as both color and black and white. How do I save each edit as a different file name so I can see both and print both without having

  • After updating my iPhone, I am unable to sync it with my MacBook! what's going on?!

    after updating my iPhone on the 30/9/2012. it stops connecting to my MacBook. I have been trying to update but it says it is up to date. someone help!

  • [E51] Where's my hidden SSID ?

    Hi, From the home page of the phone, it's possible to activate WLAN networks lookup.Several SSD are displayed, but not mine because it's hidden. So, I've correctly setup my hidden SSID in the configuration menu, but now my SSID is never displayed on