# yum install vsftpd
# chkconfig vsftpd on
# vi /etc/vsftpd/vsftpd.conf
Uncomment the following lines from /etc/vsftpd/vsftpd.conf
chroot_list_file=/etc/vsftpd/chroot_list
For example we are going to add the user adam with password adampwd
# vi /etc/vsftpd/chroot_list
Give a user name on each line like:
adam
# adduser adam
# passwd adam
This will ask for password to be used. Give the password and retype it when prompted. Make sure the port 21 is open. To give access to the user to a single folder add the line
chroot_local_user=YES
to the file /etc/vsftpd/vsftpd.conf. The above step will give the user adam permission to the folder /home/adam only.
# service vsftpd restart
Related Articles
- vsftpd: FTP Server for DD-WRT (blastrix.wordpress.com)
- Setting Up an FTP Site on Your Server (brighthub.com)
- Building a secure web server with CentOS 5, part 2 (annhathoa.wordpress.com)
I adored your wonderful writing. good contribution. I hope you write others. I will continue watching
LikeLike
Very interesting info!Perfect just what I was looking for!
LikeLike
It’s hard to find educated people on this subject, nevertheless you sound like you understand what it is you are speaking about! Thanks a lot…
LikeLike
Hey There. I found your website using msn. This is an extremely well written article. I’ll make sure to bookmark it and come back to read more of your useful info. Thanks for the blog post. I’ll certainly return. Carmelo Branche
LikeLike
I just required some details and was looking on Google for it. I visited every page that came on 1st page and didn’t got any relevant result then I thought to take a look at the second 1 and got your blog. This is what I wanted!
LikeLike
You made a number of nice points there. I did a search on the subject and found most people will go along with with your blog.
LikeLike