Assigning Limited access to users for a particular folder: using vsftpd
- Install vsftpd if not installed (http://www.thegeekstuff.com/2010/11/vsftpd-setup/)
- Create user with home folder to the folder which you want him to have access or modify their folder (You can use useradd or usermod command)
- You can see users in /etc/passwd file
- Add this code to the vsftpd’s config file (/etc/vsftpd.conf)
local_root=/mnt/filedump [Note: this is the path for the folder you which you want to give access to]
- Remove comment from “chroot_local_user=YES” on in vsftpd’s config.
- Make sure the folder has appropriate writes on it, else you can change that using chmod command for example chmod -R 777 Folder path
- Restart VSFTPD services [service vsftpd restart]
- Now you can give hostname, userID and password to user and just relax (he won’t be able to access any other directory)
All your comments are welcome.