I found that there isn't any FTP options in Lion Server. How can I setup it up? I would like to restrict …..
- Which user can login with FTP server?
- Which folder can permitted user access?
I found that I can install vsftpd via homebrew, but I can't find the vsftpd.conf file…
Would anyone here kindly tell me how to do these? Thank a lot.
Best Answer
Please refer to the answer at Create a Remote Only User in OS X.
The last part of that post will use
bindfs
to mount a user privileged only folder. See below. The whole instruction set is on the blog post referenced or just look at both posts. If someone wants me to duplicate that other post here let me know.Getting in is one thing. Now you have to mount the folder you want to use. Unfortunately you can't use a symlink inside of a chroot jail. This is where MacPorts is your best friend. I don't know why I've never seen fit to install this before. After installation just issue the following commands.
You might have to restart. Now with an empty folder created in
/chroot/user
you canmount --bind
to a folder outside of the chroot jail. For exampleSo far this seems to work here.