install vsftpd on centos with folder permission

# 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

Advertisements
install vsftpd on centos with folder permission

16 thoughts on “install vsftpd on centos with folder permission

  1. 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

    Like

  2. 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!

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s