This script came in handy many times when I had to share things with my other laptops or windows users.
On a Mac you should have Ruby installed. Macs normally come with an ftpd whose frontend has been ripped out, so you can only do this on the command line. Basically, write this to a script file (lets call it setftp
)
and then use it by typing:
./setftp /directoryIWantToShare
Tested on Mavericks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
With this you will have an ftpd turn on whose root folder is the folder you named. in this case it is /directoryIWantToShare