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

Similar Messages

  • Compare two pdf files using adobe acrobat through command line

    Does anyone know how to compare two pdf files using adobe acrobat through command line. I want to do this via command line because we want to compare hundreds of file every day through some automated windows tasks.
    If command line option is not available in acrobat, then is it feasible to make use of acrobat javascript API to do this task?
    Any kind of help will be greatly.

    Command-line: Not possible.
    JavaScript: Possible, but very limited. Basically the only thing you can do is simulate clicking the Compare Documents button. The rest has to be done manually.
    However, it *might* be possible to automate this process a bit more using a plugin. Ask over at the Acrobat SDK forum for more information...

  • Unable to enable AFP file sharing, SMB won't allow connections. Is there a workaround?

    After upgrading to Lion from Snow Leopard, I cannot enable file sharing.  Checking the checkbox immediately unchecks it.  When looking into this more closely, I can enable SMB, but not AFP, and my husband cannot connect to the SMB share when enabled- it just gives him a "Connection Failed" error.
    When I try to enable AFP, I get this message in the console:
    1/1/12 11:04:06.084 AM com.apple.coreservicesd: launch_msg(): Socket is not connected
    1/1/12 11:04:06.000 AM kernel: nstat_lookup_entry failed: 2
    When I enable or disable SMB, I get a combination of several of these messages in the console:
    1/1/12 11:12:29.970 AM com.apple.smb.preferences: ERROR [launchd_client.cpp:138] failed to send GetJob message to launchd for job com.apple.smbd: Socket is not connected
    1/1/12 11:12:30.000 AM kernel: nstat_lookup_entry failed: 2
    Is there a way to repair or work around this?  I bought Lion less than a month ago but can't find a way to contact Apple support directly.

    I have tried numerous workarounds with no success. Everything worked fine on Snow Leopard as regards to connecting to my MBP from my Mac Mini. But with Lion, none of that works. Can we get a refund for Lion? This is atrocious!

  • 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

  • How can I set enable HTTP and/or HTTPS Proxies through command line?

    I know the exact key/value to be changed; it's in
    /Library/Preferences/SystemConfiguration/preferences.plist -> NetworkServices -> 46A40FA8-6E7C-xxxx-xxxx-xxxxxxxxxxx -> Proxies -> HTTP(S)Enable ->  should be set to 1
    I immdediately thought of using defaults write to carry this out in the command line but I don't know how (or if at all!) that works with multi-level key/values. I only have access to the first level (NetworkServices) with defaults read.
    Any help would be much appreciated,
    thanks \.

    The networksetup utility is the program OS X uses to change the network configuration.  The Network Preference Pane in system preferences is just a front end to networksetup; networksetup can do everything the preference pane can do (and possibly more).
    The parameters you are interested in (from the man page):
    -getwebproxy networkservice
    Displays Web proxy (server, port, enabled value) info for <networkservice>.
    -setwebproxy networkservice domain portnumber authenticated username password
    Set Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on. Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support.  Specify <username> and <password> if you turn authenticated proxy support on.
    -setwebproxystate networkservice on | off
    Set Web proxy on <networkservice> to either <on> or <off>.
    -getsecurewebproxy networkservice
    Displays Secure Web proxy (server, port, enabled value) info for <networkservice>.
    -setsecurewebproxy networkservice domain portnumber authenticated username password
    Set Secure Web proxy for <networkservice> with <domain> and <port number>. Turns proxy on.  Optionally, specify <on> or <off> for <authenticated> to enable and disable authenticated proxy support. Specify <username> and <password> if you turn authenticated proxy support on.
    -setsecurewebproxystate networkservice on | off
    Set SecureWeb proxy on <networkservice> to either <on> or <off>.

  • Why did I have to enable Windows File Sharing to share files between two Mavericks iMacs?

    File Sharing failed between my Mavericks iMacs.  The console logs showed that the target iMac saw the ntlmv2 protocol as unknown to the kdc.  I fixed it by enabling Windows File Sharing on the target Mavericks iMac.  I had tried disabling SMB on both iMacs and leaving AFP on, but then nothing happened when I tried to connect.  Why did I have to enable Windows File Sharing to share files between two Mavericks iMacs?

    When you enable file sharing you need to have either SMB (Windows) or AFP (historically Apple-native) file sharing checked. The default in Mavericks is SMB, and not AFP.
    If you uncheck both, then the system will turn off file sharing. Apple supports the use of both SMB and AFP connections in Mavericks, so with only AFP enabled you should have been able to establish a connection, but there could be a small bug or configuration-specific snafu that you're encountering.
    With AFP enabled only, try pressing Command-K in the Finder to open the Connect To Server dialogue, and in here enter the address to the system using afp:// as the protocol, such as the following (the name can be looked up in the Sharing system preferences):
    afp://my_imac.local

  • 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.

  • Reseting the Hashed Password after enabling Windows File Sharing

    Disclaimer: you'll need a good bit of knowledge about OS X, UNIX, and encryption to understand what I'm talking about.
    All right, so normally OS X hashes user passwords using a salted SHA1 encryption. It uses shadowing so that you can't obtain the actual hash value using "% nidump passwd".
    BUT, if you enable Windows File Sharing, all that changes. OS X re-hashes your password using the much less secure LANMAN encryption. This allows Windows machines to access your files. (LANMAN is what Windows used to encrypt passwords up through Windows ME. Later versions of Windows use NTLM instead, which is stronger.) This is why, the first time you enable Windows File Sharing, OS X warns you that enabling the feature will require your password to be stored in a less secure manner; it's downgrading the hash from SHA1 to LANMAN.
    My question is: I'm done sharing files with idiot Windows users - how do I force OS X to go back to storing my password using SHA1?
    Thanks guys.
    -Bryan

    Thanks biovizier. You're absolutely right, deleting the extra text after ";shadowHash;" and then reseting the password for the user's account does seem to force OS X to rehash the password using SHA1.
    Just in case someone else has this question in the future, here's how to verify that your password is hashed in SHA1:
    Log in as Root and open the /private/var/db/shadow/hash folder. You'll see files with long, weird names. You'll also see an XML file (with the extension *.state) for each of the files with long, weird names. The XML file contains several tags that tell OS X information about the hashed password - things like when it last logged on, when it was created, how many times login failed, etc.
    We're interested in the other files - the ones that don't end in ".state"
    To verify that SHA1 is being used, open the long, weird files in textedit. You should see something like this:
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000059G31HJ75BR54210P07Y57BC57094D643H78K8765L98C6X000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000
    There should be a few more zeros; I've cut some out here to save space.
    What should NOT exist, is the following:
    57Y083D243109VGR45Z4B65812R8M087H65HJ8OK95T89L8JHL9000000000
    000000000000000000000000000000000000000000000000000000000000
    0000000059G31HJ75BR54210P07Y57BC57094D643H78K8765L98C6X00000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    000000000000000000000000000000000000000000000000000000000000
    00000000000000000000000000000
    The second Hashed value does not start with zeros. This hash value is not SHA1. It is the less secure encryption method required for compatability with Windows.
    If your hash file opens with zeros, you're using SHA1. Otherwise, follow Biovizier's procedure: Open NetInfo, select the user account whose password needs to be changed back to SHA1, look at the "authentication_authority" value, make sure the value is set to ;ShadowHash; and that no additional text follows that string, then reset the affected account's password. You can then log back in as root and re-check the hash files using textedit and you should find that the hash file opens with solid zeros instead of letters and numbers.
    Do NOT manually edit the hash files in textedit. One of those files is the hash for the Root password. If you change that hash file, your root password will no longer work (because when you type MYPASSWORD, OS X will hash that string and find that the hashed value no longer matches the stored hash value in /private/var/db/shadow/hash and OS X will therefore reject your password as incorrect) and you will quickly find yourself locked out of your computer for good.
    And finally, just in case you have the computing power of the NSA and are thinking about running the hashes I've listed here: A) They aren't the right length; I've left some characters out and B) I randomly substituted different alphanumerics in for the ones in my real hashes with no rhyme or reason.
    Which brings me to another point: NEVER post your hashes online. Yes, it takes a TON of computing power to break them, but still, they're hidden away for a reason!
    Anyway, I hope this helps other security buffs out there.
    I'm going to make a suggestion to Apple that OS 10.5 be changed so that when you unclick "windows file sharing" the OS immediately rehashes your password in SHA1 again.
    -Bryan

  • Unable to connect macs with afp file sharing

    I am suddenly unable to connect my MacBook Pro to my Mini using afp file sharing. I've done this successfully many times in the past, most recently about three weeks ago.
    After using Go -> Connect to Server and picking the previously used Favourite Server entry, I get the Connecting to Server window, then after about a minute I get a pop up that says:
    Connection failed
    The server may not exist or it is not operational at this time. Check the server name or IP address and your network connection and try again.
    Then the Finder icon jumps about and in the Connecting to Server window the message is:
    The Finder cannot complete the operation because some data in "afp://aragorn" could not be read or written. (Error code -36)
    Both machines are connected by Cat-6 cable to the same router, File Sharing is enabled on both machines, and Airport is switched off. I can ping each machine from the other, and both otherwise work fine. I've also tried connecting using the IP address instead of the machine name, with the same result. I've even tried another router, with the same result.
    Anyone seen this before?
    thanks in advance,
    I.B.

    Thanks, j.v., for your reply. It's very strange, this.
    I tried your suggestion, but to no avail. The destination machine is visible using ⇧⌘K and under 'Shared' in the sidebar of the Finder window, but selecting it from either place didn't work.
    However, after the connection attempts failed, I tried clicking on the 'Connect as' button in the Finder window, and after a bit I got the login credentials window. It allowed me to log in, then connected with the access I was after.
    I guess it must be some sort of access permissions issue, but it's quite odd that it only just started happening as I move files between these two machines frequently, and never had any problems before. The 'error code 36' message is completely useless for troubleshooting...

  • Undeploy an sda file through command-line

    Hi All,
          I want to undeploy an .sda file through command-line,what is the procedure to undeploy an sda file through command-line and send me the procedure for this
    Thanks & Regards,
    guru

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • 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"

  • How to undeploy an .sda file through command line

    Hi,
    How to undeploy an .sda file through command line.send me the related command to do it.and related information and links.

    Hi
    Please find below the steps to undeploy thro command line :
    Shut down the sdm server
    1)SDM shutdown "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program" "sdmguiport=50018" "sdmhostname=<hostname>" password="<password>" "shutdownmode=abort"
    2)sdm jstartup "mode=standalone" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    3) sdm undeploy "sdmhome=D:\usr\sap\J2E\DVEBMGS00\SDM\program" "compname=c:\test.sda"
    4)sdm jstartup "mode=integrated" "sdmhome=c:\usr\sap\J2E\DVEBMGS00\SDM\program"
    5)start the sdm server again
    SDM server "sdmhome=D:\usr\sap\J2E\JCO1\SDM\program"
    Hope this helps. do not forget to reward points
    regards
    rajeshkr

  • Lion will not allow AFP file sharing

    After upgrading my iMac to Lion, I tried to turn on File Sharing, but it would not allow it - I'd check the box, it would refuse the check.  I had to go in to Options and check SMB Sharing to get File Sharing to work.  However, I'd like to use AFP file sharing, not SMB.  I still cannot turn on AFP sharing - I check the box, it unchecks itself in 1/2 a second.
    My Macbook Pro was upgraded a couple months ago, and it does not have this issue.  What am I missing? 

    I had this same problem so I opened the console application and viewed all messages.  Then I tried to check the File Sharing checkbox and noticed that two new entries showed up.
    3/31/12 9:21:05.415 PM com.apple.coreservicesd: launch_msg(): Socket is not connected
    3/31/12 9:21:05.645 PM com.apple.coreservicesd: bind(): Address already in use
    Each time I tried to check the checkbox, I received the same messages.  I could of done more detective work but Address already in use may be some kind of memory leak issue or something so I simply rebooted my Mac Pro and then I was able to check the box and it stuck this time.  Also, I was able to share my file like I intended.

  • How to install adobe flash player through command line with some script

    Hi Guys,
    Do you know how to install adobe flash player through command line with some script?
    Thanks,
    Galina

    Windows. I tried silent install  with "install_flash_player.exe /install" but it works only with one file that I downloaded from adobe.com - "install_flashplayer10_mssd_aih.exe". But it is possible to download this last file only one time, every next time it redirects me to download install_flash_player.exe file.

  • Run App Engine through command line but have it show up in Process Monitor

    We are trying to run Application Engine through command line and have it show up in the Process Monitor.
    We have successfully ran the Application Engine through command line. We also can successfully run the Application Engine through PIA.
    Only when you run the AppEng through PIA it goes through the Process Scheduler and shows up in the Process Monitor.
    We would like to be able to do this through command line as well. Has anyone done this before?

    I'm not sure if it is (easily) doable.
    => Fire a process through the front end appl is nothing but insert few rows in process scheduler tables settings (PSPRCSRQST, PSPRCSQUE), then the process scheduler is taking information from there every x seconds and eventually run the command (on the process scheduler server) keeping an eye on the process result in the tables to post the result.
    => Fire psae through command line (or pssqr) bypass the process scheduler, you can run it from any client... so even without any clue about Process Scheduler server or even without Process Scheduler at all (cf. the very first AE running during an installation is VERSION without anything else than the client).
    So finally, your AE program has no clue where it should run outside the client you are fired the command from (i.e. on the batch server as it is running when you are fired the same AE through the front end application), nothing more about the process scheduler configuration file, and where the output files should be posted.
    Maybe not by running the AE from the command line, but by simulating the actions as it would be from the front end application, for instance by inserting in the tables whatever you want to run... but it sounds odd. Probably some developer might have done this before... but this should be reconsidered by Peopletools version/patch level (or through CI ?)
    Nicolas.
    added the last paragraph
    Edited by: N Gasparotto on May 21, 2010 2:46 PM

Maybe you are looking for

  • DOTS ON THE PDF FORM

    Hi,When converting from word to PDF I get a lot of dots marks on the form,some all over the page and some look like a frame...any idea why?Thanks.

  • Pshop CS3 Save for Web Increases Width/Height

    Hi, I've been using Photoshop for 15 years and used the Save for Web at CS2 without problem. In CS3, it is downsampling the res from 300 ppi to 72 correctly but at the same time increasing the width and height, as though I'd gone into Image Size to d

  • SWFLoader.content: stage width and height, can i override to return proper results  ?

    Hiya. I'm loading with SWFLoader games that where written using stage functions to get the width and height of the stage and to draw the game and calculate game movements accordinly. When I load a game using SWFLoader, the stage size changes from the

  • Gnome-vfs and gvfs

    As I can read from wikipedia, gnome-vfs is deprecated and gvfs is a replacement for it. But libgnome package depends on both gnome-vfs and gvfs.  Is it necessary? P.S. Sorry for my English.

  • Itunes genius recommendations not showing

    I've used Genius recommendations for itunes music for some time when you click on iTunes the section where it says Genius recommendations is there. Now it it isn't. Does any one know how tot get this back?