Enable anonymous FTP in 10.5 and 10.6

Oct 27, '09 07:30:02AM

Contributed by: 23dos

To enable anonymous FTP in Snow Leopard (and probably Leopard as well), just execute the following commands in Terminal:

$ sudo dscl . -create /Users/ftp
$ sudo dscl . -create /Users/ftp NFSHomeDirectory /path/to/ftp/folder
Replace /path/to/ftp/folder with the path to the directory that the guest account will have access to. To disable anonymous access, use this command:
$ sudo dscl . -delete /Users/ftp
You may have to restart the FTP daemon by stopping File Sharing and starting it again in System Preferences. Although I didn't test it in Leopard, I see no reason why it shouldn't work there as well.

[robg adds: I haven't tested this one.]

Comments (4)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20091013094149180