Knowledgebase

Portal Home > Knowledgebase > Articles Database > vsftpd | Users can reach all folders in my VPS


vsftpd | Users can reach all folders in my VPS




Posted by umitemree, 11-26-2012, 05:30 PM
Hello everyone, I have vsftpd installed on my CentOS VPS. I don't have a control panel so I have configure all the things manually. So I started configuring vsftpd. So here are the details. My vsftpd.conf file: /etc/vsftpd.chroot_users What is wrong?

Posted by Server Adminz, 11-26-2012, 05:35 PM
If you are trying to chroot this user, then you should probably change to

Posted by umitemree, 11-26-2012, 06:04 PM
Thank you. This is totally worked. But how can I specify a folder for a user? I don't want /home/{username} directory. Last edited by umitemree; 11-26-2012 at 06:07 PM.

Posted by BestServerSupport, 11-27-2012, 08:58 AM
Kindly try following steps: 1. edit /etc/vsftpd/vsftpd.conf chroot_list_enable=YES chroot_list_file=/etc/vsftpd/vsftpd.chroot_list passwd_chroot_enable=yes 2. Edit file /etc/vsftpd/vsftpd.chroot_list simply add name of user for example usertest. 3. Change your user default home directory or you can also bind your access path with home directory of user. usermod -d /var/lib/tomcat/webapps/ROOT usertest OR mount --bind /var/lib/tomcat/webapps/ROOT /home/user1 4. /etc/init.d/vsftpd restart

Posted by umitemree, 12-02-2012, 01:46 PM
Well it says: 500 OOPS: cannot change directory: /root/shoutcast/autodj/mp3



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How long did it take? (Views: 545)
Ping local not work (Views: 521)


Language:

Contact us