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 set up vsftpd for private FTP. Only authenticated users in the ftp group can login. Also, every user is chrooted to its home directory (/home/username)


I can log in, browse, download, but I'm not allowed to upload files. I get 550 Access is denied message from Windows Explorer

In order to tweak I did the following:

I made sure that the directory is user-writable (chmod g-rwx o-rwx u+w -R /home/username), I chose to do g-rwx otherwise it could be accessible via SSH by people in the users group that don't get chrooted. I made sure that directory and children elements are owned by user (forced chown -R as root) but they didn't help.

I found no useful thing in /var/log/messages file. I believed that vsftpd runs as the logged in user and I found confirmation running htop.

What kind of permission problem could cause this behaviour? If I go with SFTP with the same user I can do everything I want!

Thank you

share|improve this question
SELinux? I believe that you either don't have it or you have disable it, right? – Peter Aug 23 '12 at 20:16

There should be an option named write_enable in the configuration file.

As stated in the manpage:

   This controls whether any FTP commands which change the filesystem are allowed or not. These commands    

   Default: NO

it defaults to NO, so that might be the cause.

share|improve this answer
Already active... – usr-local-ΕΨΗΕΛΩΝ Jan 24 '12 at 13:26
@djechelon Are you using virtual users? – Mr Shunz Jan 24 '12 at 15:46
No they are all local UNIX users with each its own home directory. I have set up one so far... – usr-local-ΕΨΗΕΛΩΝ Jan 24 '12 at 16:12
@djechelon Aa side note, try looking also into /var/log/syslog and /var/log/daemon[.log] for errors – Mr Shunz Jan 24 '12 at 16:33
This did help me, thank you! – dldnh Sep 3 '12 at 16:07

Your Answer


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.