Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have successfully installed the vsftpd. and it is live, but I get following error:

Response:   500 OOPS: cannot change directory:/home/sovit

What I want to do is direct all local users of the system to the /var/www folder instead of their home root.

Below is the vsftpd conf file:

http://pastie.org/2284176

Any help would be appreciated. Thank you.

share|improve this question
  • Define an unprivileged user with nopriv_user, assuming is ftpsecure
  • Change GID of all the ftp users to the same with ftpsecure
  • Change the umask of webserver user and vsftpd to 002
  • chmod -R g+w /var/www

PS: As another way: you can change the $HOME folder of ftp user to the /var/www instead of setting local_root in vsftpd.conf.

share|improve this answer
    
let me try this – Yalamber Jul 29 '11 at 3:19
up vote 0 down vote accepted

I figured out there was no directory created for user in home directory. I created it and set the local root to /var/www and it worked

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.