Turn on File Sharing via ARD?

I have one stubborn G4 running OS X 10.3.8 that keeps turning off File Sharing all on its own. It seems to happen a) infrequently and b) spontaneously. However, File Sharing needs to always be on with this Mac because, well, people need to copy things to it.
Is there a way, using ARD, that I can send a command (Unix? AppleScript?) to that machine to turn on File Sharing? Sure, I can control the Mac with ARD and with a few mouse clicks turn it on manually, but for the sake of argument lets say I'm lazy. Can it be done?
I had a look at networksetup and systemsetup in the ARD manual but those don't seem to do what I want. Any other ideas? Preferably something I can save as a task...
Robert

I posted the same question in the AppleScript forum and got an answer:
http://discussions.apple.com/message.jspa?messageID=1215531
Robert

Similar Messages

  • Enable AFP File Sharing via ARD through command line?

    Anyone know how to enable AFP file sharing on a remote Leopard client using ARD? I had been sending Unix Commands to do most of my changes, but cannot figure out how to enable AFP file sharing through a unix command. I've tried running /usr/sbin/AppleFileServer but that doesn't seem to do the trick. Any ideas?

    Howdy, Space Ranger!
    I'd recommend checking out the following documentation to get filesharing going without interrupting a current user.
    Apple Remote Desktop Administrator’s Guide
    http://images.apple.com/remotedesktop/pdf/ARD3_AdminGuide.pdf
    Page 145:
    Executing a Single UNIX Command
    Using the UNIX Command window, you can send a single command to the selected
    client computers. The command is executed using the bash shell.
    To execute a single UNIX command:
    1 Select a computer list in the Remote Desktop window.
    2 Select one or more computers in the selected computer list.
    3 Choose Manage > Send UNIX Command.
    4 Type or paste the command.
    If your command is a multi-line script, enter each command on its own line. If you want
    to break up a single-line command for better readability, use a backslash (\) to begin a
    new line.
    5 Set the permissions used to execute the command.
    You can choose the currently logged-in user, or choose the name of another user on
    the client computers.
    6 Click Send.
    For information regarding Terminal commands that can be useful (this is for 10.3 and later, but the relevant command does work in 10.8):
    Mac OS X Server Command-Line Administration
    http://manuals.info.apple.com/en_US/MacOSXSrvr10.3_CommandLineAdminGuide.pdf
    Page 65:
    Commands you can use to create share points and manage AFP, NFS, Windows (SMB), and FTP services in Mac OS X Server.
    Share Points
    You can use the sharing tool to list, create, and modify share points.
    Best regards,
    Allen

  • File Sharing via TCP/IP

    Hi all,
    I do mac support for a living and freelance after work... I have a client with OS 9.2.1 and I have 9.2.2. He lives 50 miles away, and has weekly probems, so if I could get this going it would be great. We both have high speed, today I had him turn on File Sharing and Enable client sharing over TCP/IP, got his Computer and User name (no password) and his dynamic, ISP supplied IP address, and from my mac, 50 miles away, I can see his computer, but I can't log on. Says user name or password are incorrect.
    Is there something else I need to do on my mac, or he on his to allow this connection?
    Much obliged.
    ms
    G3 B&W 400MHz, indigo iMac 500 MHz   Mac OS 9.2.x  

    Hi Frank
    I have done this before, tons of times, but on a WAN (I work in an organization with 2,000 Macs in 30 buildings) and have set some up with no password. The only difference is that this situation is going from one ISP to another. But, the password thing has been bugging me, I will try it. I had him retype his user (owner) name, so that can't be it but it does report user name or password incorrect. Boy, I'd feel silly if that was it!
    ms

  • How to turn on file sharing in new itunes 11

    I have recently installed itunes 11, but now i can not seem to turn my file sharing on, so i can not drag and drop videos from my laptop to my ipad, how do i fix this?

    And if you remove from you iDevice one app that should appear on File Sharing and sync and then add it back and sync again...

  • How to turn on file sharing?

    How do I turn on file sharing to connect my Mac Book Pro to my desk top?

    Hi there caphotonyc,
    You may find the information in the article below helpful.
    Mac Basics: File Sharing
    http://support.apple.com/kb/ht1549
    -Griff W. 

  • File sharing via bluetooth

    How do I share files with other mobiles and with my PC using the bluetooth.  When I try to send a browse my blackberry or send files from my Mac, I receive a message indicating "the device does not have the necessary services." I receive this same message when pair and try to exchange files with another mobile phone.   

    Hi habiba5,
    We'd love to help you out, can you please elaborate your concern about file sharing via Bluetooth. Where you able to download the Bluetooth share app from Marketplace? What happened when you try to send a file using Bluetooth? 
    If my post helped you, please don't forget to click on the "White Star" and if it resolved your issue click on "Accept as Solution"

  • Finder crashes when I turn off File Sharing in a Shared Mac

    Hi,
    Situation: I have 2 laptops: a Macbook Pro Retina and a Black Macbook (ca. 2008, Snow Leopard). I have turned on File Sharing on both ever since and enjoyed being able to transfer files from one to another.
    Lately, whenever I turn off File Sharing in my Black MB, turn it off, or basically use my MBP retina without being connected to my Black MB thru File Sharing, the Finder of MBPR is extremely slow. Every time I open a new window, open a folder, or switch tabs in the sidebar, it is extremely sluggish.
    However, once I turn File Sharing back on in my Black MB (or pretty much whenever I get connected to my Black MB), everything is back to normal.
    Also, even when I "eject" my Black MB from the "Shared" list in my MBPr, MBPr automatically reconnects to Black MB.
    Any ideas on why this happen?
    Things I've tried:
    1. Clean caches
    2. Restarted PRAM
    3. Reinstalled OS X ML
    Same result.

    The next time you have the problem, note the exact times when it starts and ends: hour, minute, second.
    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left.
    Scroll back in the log to the time you noted above. Select any messages timestamped during that interval. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    When posting a log extract, be selective. In most cases, a few dozen lines are more than enough.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Yosemite Server when restarted turns of file sharing.

    Yosemite Server when restarted turns off file sharing.  Any way to get file sharing to stay on after rebooting without manually turning it on?

    All services that are running should return to operation once restarted.  Now, that being said, where are your share points located?  Are they on an external volume?  If so, what connection bus?  It is possible that file services is failing to start because the volume(s) that contain(s) the share points is/are not accessible yet.
    Beyond that, have you looked in the logs?  /var/log/system.log is a good place to start.  Are there any entries that point to a reason for the service to fail to start? 
    Reid
    Apple Consultants Network
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store
    Author "Mavericks Server – Control and Collaboration" :: Exclusively available in Apple's iBooks Store

  • Turn off Printer Sharing via Terminal

    Does anybody know to turn off printer sharing via terminal?

    You should be reading this:
    http://localhost:631/sam.html
    Here's one way (for a specific printer):
    /usr/sbin/lpadmin -p printer -u allow:[your_username] ENTER

  • File sharing via Airport Snow

    Hi all.
    I have two Macs: (1) is an eMac connected via ethernet to an Airport Snow BS, which is in turn connected to the internet via ethernet. (2) is a MacBook that uses a wireless connection to the internet via the same Airport Snow BS.
    My question is, why can't the two Macs see one another on the network? I need to file share between them.
    Thank you!

    Kmineks, Welcome to the discussion area!
    Yes they can.
    If you want the eMac to be visible to the MacBook, on the eMac go to System Preferences->Sharing preference pane and enable File Sharing.
    On the MacBook use the Finder's G0->Connect to Server... command to find the eMac. Then from the MacBook log into the eMac using a valid eMac user's name and password.
    To go the other direction follow a similar process swapping the 2 machines.

  • No Internet, File Sharing via Airport cards

    My alum iMac is connected to the Internet via cable modem, Airport is on. My Macbook in the other room says it's connected to the network created in my iMac (no routers involved). I suddenly can't "Connect as" to my iMac from my new black Macbook, nor can I get an Internet connection from the laptop. Airport on the Macbook has a self-assigned IP address.
    Sometimes it works, sometimes it doesn't, sometimes turning airport off and on a dozen times helps, today it doesn't. I've renewed DCHP leases multiple times, etc. Nothing is helping.
    EDIT: I got it working only by turning the firewall completely OFF. This is absurd. File sharing was marked as an acceptable service; I don't know how to do the same with Internet sharing. But no firewall is not a secure environment.
    Message was edited by: Marakel

    It crapped out. I tried to re-establish, but suddenly it didn't remember the password (yes, it's in the system keychain). No matter what I did, I couldn't even connect to the network.
    I went back to the iMac and created a new network, and now it's working for a few minutes.
    I just recommended to several family members not to buy Apple computers.

  • File Sharing via Ethernet Cable

    I currently have an Imac core duo connected to a router via airport, and a imac G3 just sitting idly in the corner. However i have some important files i need to transfer to the Core duo from the G3, and all i have is an Ethernet cable. Is this possible and how would i got about doing it? I have setup a small wireless network (for internet sharing), but outside of that i am totally clueless when it comes to file sharing and networks - so all help is appreciated!
    Thanks in advance, Feron.

    I would plug the two machines directly into each other with your ethernet cable. It will be the fastest transfer and take as many things out of the equation as possible.
    Are you running OSX on both machines? If either computer isn't seeing the other, try turning off each firewall under the same 'Sharing' preference pane that you turned on the personal file sharing. At the top of that same pane, give each computer a name in the 'Computer Name:' dialog. Then you can return to the Finder and choose Go-->Connect to Server... Type in the name + ".local" (ie: "Feron.local") and explicitly connect to the other machine.

  • Personal file sharing via a cable modem and AEBS

    At home, my Internet access is provided by a Comcast cable modem. It used DHCP; however, the address I get assigned rarely changes. What I want to do is use my G5 and an external disk to back up files from my MBP while I travel.
    I have a new AirPort Extreme Base Station which I use as my router. Is there any documentation available to download that tells me how to set up the AirPort base station to allow me to mount my G5's disks on my laptop when I travel? I know I need to enable personal file sharing, but how do I get the router to allow me to access my G5's disks from my hotel? I also want to access the disk drive that's connected to my AEBS remotely.
    I can do this when I connect via my MBP to my AEBS wirelessly and it works great, but I don't know what to do on the AEBS to allow it to be done from anywhere.
    Any tips will be appreciated.

    Hmmm, don't have the "Extreme" AEBS here... Express or something, so it looks like this one...
    http://portforward.com/english/routers/port_forwarding/Apple/AirPortExtreme/FTP. htm
    And the setup has no "continue" button... just the ADD, OK, and then Update buttons.

  • File sharing via NFS - permissions problem? SOLVED

    I'd like to share files between my two linux boxes, a desktop (DT) and a laptop (LT).  DT runs Xandros 3, LT runs Arch.  They are connected via a router.
    NFS works all right, up to a point.  Using NFS, I can access all filesystems on DT from LT but the reverse is not true.  Arch on LT resides in two partitions, / and /home.  From DT I can access all the directories in the root filesystem / of LT as well as their subdirectories, with two exceptions.  I cannot access any subdirectories in /home, including my home dir /home/robert/ which doesn't even show up, and in /mnt I cannot access the filesystems of other Linux distros that are mounted in Arch at these mountpoints (e.g. WinXP at /mnt/sda2, Xandros 4 at /mnt/sda5, Slackware 11 at /mnt/sda7) even though they can be accessed perfectly well from within Arch on LT.
    I've also exported the LT /home filesystem separately by adding the line '/home  DT_hostname(rw)' in /etc/exports on LT, and running # mount LT_hostname:/home /mnt/LT_hostname_home on DT.  When I do that /home/robert shows up in the file manager on DT but when I want to open this directory I get the error "Access denied".  The permissions for this LT directory, as seen when mounted on DT, are 'drwx--x--x 1000 users'.  When I try to make this directory fully accessible by running 'chmod a+rw /mnt/LT_hostname_home/robert' as root I get the error
    'chmod: changing permissions of `/mnt/LT_hostname_home/robert': Operation not permitted'.
    In short, while Xandros on DT is quite permissive in allowing me to access all of its filesystems in their entirety from within Arch on LT, Arch on LT is more finicky as it denies access to Xandros on DT to some critical subdirectories.
    I've also tried 'fish' in Konqueror, with similar results.  Running 'fish://DT_hostname' in Arch on LT gives me full access to filesystems on DT but when I'm running 'fish://LT_hostname' on DT, I get the error 'Could not connect to host LT_hostname', i.e. Arch rejects the connection attempt.
    To sum up, when I'm using NFS the permissions don't seem to be fully correct on Arch on LT, and I don't seem to be able to change them, and when I'm using 'fish' something is also fishy on the Arch side.
    On a side note, both systems run firewalls (DT: Firestarter, LT: Arno's FW) which I had to stop - without doing that nothing connects.  Also, both systems obviously run all necessary nfs and ssh daemons.
    How can I fix this problem?  Would shfs work any better?  Also, I'd prefer to keep my firewalls up all the time.
    Thanks for your help.
    Robert

    Thanks, FUBAR and tomk, for your tips.  I eventually managed to get my two boxes (DT with Xandros and LT with Arch) connected in such a way that DT can access all filesystems on LT and vice versa.  I experimented with three different ways of doing this, NFS, FISH and SHFS.
    Using NFS entailed the most involved configuration of the three.  FISH was the simplest to set up but SHFS wasn't that much more complicated.  My preference would be for SHFS.  See:  http://shfs.sourceforge.net/
    NFS
    Using NFS in Arch only requires installing portmap and nfs-utils; most of the NFS functionality has already been compiled into the kernel.  As FUBAR suspected, the uid's for user robert were different on the two machines: uid=1000 in Arch and uid=1001 in Xandros.  In NFS, I got around that by putting 'no_root_squash' in the export directives in /etc/exports, i.e.
    / hostname_DT(rw,no_root_squash,subtree_check)
    /home hostname_DT(rw,no_root_squash,subtree_check)
    /mnt/sda5 hostname_DT(rw,no_root_squash,subtree_check)
    /mnt/sda7 hostname_DT(rw,no_root_squash,subtree_check)
    Using NFS, one also has to add lines in /etc/hosts.allow for each of the daemons and programs used by NFS, specifying which hosts are allowed to use these services, e.g. in my case for portmap
    portmap: 192.168.0.5, 192.168.0.7 # you have to use IP addresses!
    and the same for nsfd, nfslock, lockd, rquotad, mountd, statd, mount, umount.  In Xandros, two of these have different names: rpc.nsfd and rpc.mountd.
    Also, to use NFS in Arch one has to add the services portmap, nfslock, nfsd to the DAEMONS line in /etc/rc.conf, e.g. right after network.  Finally, I have to stop the firewalls on both machines when I want to use NFS.  After doing all of that, I can use Konqueror as user robert to access all filesystems on the respective server (DT or LT) from the other machine as a client except for /home/robert and /mnt/sda7/home/robert (that's a Slackware install) on LT; for these I have to use Konqueror as root on DT.
    FISH
    Using FISH is very simple.  Remote filesystems don't have to be mounted, and the only thing that's required is that the sshd service is running on the file server.  I.e. in Arch one has to install openssh and put the service sshd in the DAEMONS line in /etc/rc.conf.  Firewalls must be stopped to set up the connection but once the connection is established it looks as though one can restart the firewalls.
    One should also add a line in /etc/hosts.allow for the hosts that are allowed to use sshd, i.e.
    sshd: 192.168.0.5, 192.168.0.7 (or sshd: ALL )
    and comment out the line ALL: ALL: DENY in Arch's /etc/hosts.deny.
    Once this is done, all that's needed to access the root filesystem of the server is to enter 'fish://root@hostname/' in the URL field of Konqueror as an ordinary user, followed by the root password.
    The drawback of FISH is that one is frequently asked for the password but I suppose one can avoid that by using SSH keys.
    SHFS
    SHFS needs to be installed and configured on the client side, not on the server side.  The server only needs to have a working sshd running.  If you run Arch as a client, install shfs in it (pacman -S shfs) and make sure sshd is running on the server and firewalls are stopped.
    Next, create a mount point for the remote filesystem, e.g.
    # mkdir -p /mnt/shfs
    Set the suid bit on /usr/bin/shfsmount and /usr/bin/shfsumount if you wish to enable all users to mount (umount) remote dirs using shfs.  You can do this in Konqueror or by running
    # chmod u+s /usr/bin/shfsmount
    # chmod u+s /usr/bin/shfsumount
    so that the permissions are: -rwsr-xr-x root root.
    Then mount the remote shell filesystem:
    # shfsmount root@remote_hostname:/ /mnt/shfs -o uid=robert
    [or you can use # mount -t shfs root@remote_hostname:/ /mnt/shfs -o uid=robert]
    Using the option -o uid=robert got me around the mismatch of uid's for robert on the two systems.
    At the 'root@remote_hostname's password:' prompt enter root's password.  You're ready then to access the remote filesystem as user robert at /mnt/shfs, even after the remote firewall is restarted.
    As with FISH, so with SHFS, it seems to be necessary that a line is added in /etc/hosts.allow for the hosts that are allowed to use sshd, i.e.
    sshd: 192.168.0.5, 192.168.0.7 (or sshd: ALL )
    and that the line ALL: ALL: DENY in Arch's /etc/hosts.deny is commented out or removed.
    I'm still a newbie with file sharing on Arch (and non-Arch Linux).  Forgive me if the above comes across as somewhat amateurish.
    Robert

  • Remote File Sharing via SSH-How to Set This Up the Easy Way

    So, I have been trying to gain access to my office iMac from my MacbookPro at home via the "interwebs" but keep getting the same issue...can not connect. I have read umpteen forums and threads. All give similar advice or are too technical to follow. I thought we made it work yesterday by installing Macfusion. That works just fine if the Mac is on. It will not wake a sleeping Mac. Here is my settup.
    Home (MBP running 10.6)
    Network (Timecapsule)
    Office (27in iMac running 10.6).
    I do have a static IP for the router.
    Here is what I want to do. Access my "sleeping" iMac from a different network via Connect Server for File Sharing. I have all the appropriate file sharing buttons checked. I can access TC using the static IP but that's as far as it goes.
    Is there a simple "Mac way" of doing this?
    Sincerely,
    Jim.
    Ps. I am happy to invest in a trusted third-party software that will "ping" the network to wake my Mac unlike Macfusion which connects only to a running Mac.

    Also check in System Preferences -> Energy Saver -> Wake for network access is ticked

Maybe you are looking for