Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I setup vsftpd, and changed the chroot settings in the vsftpd.conf file.

But how do I make a user able to access only /var/www/html/username_here/

I made the user with useradd, but what's next? Thanks :)

share|improve this question

2 Answers 2

Look at the chroot_local_user and local_root options: http://vsftpd.beasts.org/vsftpd_conf.html

You can also get really restrictive by specifying cmds_allowed

Hope this helps.

Cheers

share|improve this answer

Edit your /etc/vsftpd/vsftpd.conf file and add a line that says

chroot_local_users=YES

then restart your vsftpd

/sbin/service vsftpd restart

This will restrict local users to their home directories.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.