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

I setup VSFTPD on my Ubuntu server 12.04, it worked very good. Until I tried to change the permissions of the user so the user couldn't go in the / directory and only in the directories inside /home/user/public_html.

It could have to do something with the fact that I did this:

sudo chmod 700 -R /

I have a user, ftpUser and he is inside a group, ftpUsers. The permissions of /home/user/public_html are:

drwxrwxr-x 9 ftpUser ftpUsers 4096

My VSFTPD file looks like this:

listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
connect_from_port_20=NO
chroot_local_user=YES
pam_service=vsftpd
userlist_file=/etc/vsftpd.userlist
userlist_enable=YES
userlist_deny=NO

And in /etc/vsftpd.userlist there is only one line: ftpUser

How do I solve this so I can login, I think it has to do something with permissions but I dont know what!?

share|improve this question
    
Uh, you chmoded your entire filesystem to 700?? In that case you've got bigger problems than vsftpd not working. –  mgorven Aug 12 '12 at 5:53
    
Yes and that's why I reinstalled Ubuntu Server, after I did that I also figured it out that it was really stupid.. –  tversteeg Aug 12 '12 at 11:01

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.