Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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'm trying to set an FTP upload to a web root on Ubuntu 12.04 using vsftp. The user has a local account, username_ftp. I changed their home to their web root in /etc/passwd.

username_ftp:x:1004:1004:Users FTP Account,,,:/var/www/html/username:/bin/false

I am able to log in to the FTP server as this user, but I am unable to write. The permissions on the directory are as follows:

ls -lha /var/www/html/username/
total 8.0K
drwxrwxr-x 2 username_ftp username_ftp 4.0K Jan  9 10:27 .
drwxr-xr-x 5 root       root       4.0K Jan  7 20:38 ..

Any ideas why I am unable to upload files when logged in as this user? I believe I have all the necessary configuration options to allow writing from local users as filesystem permissions should allow.

share|improve this question
What does the vsftpd log say when trying to write/upload a file? – scai Jan 10 '13 at 6:39
Oops, looks like it is a firewall issue. I am only getting this error when FTPing from inside the network. Outside it works fine. – chris Jan 11 '13 at 1:08

Your Answer


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

Browse other questions tagged or ask your own question.