Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

local_enable=YES
write_enable=YES
chroot_local_users=NO
share|improve this question
    
What does the vsftpd log say when trying to write/upload a file? –  scai Jan 10 '13 at 6:39
1  
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

 
discard

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

Browse other questions tagged or ask your own question.