Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using vsftpd. I need an ftp server for my web server, I can login under my account of course, but I can't do the main thing it's meant for and add/edit/remove files in my var/www directory.

Could someone walk me through the process in creating a new user for just ftp, and allow it to edit anything in that folder? Or is there an easier way to edit that with another account?

share|improve this question
    
could You specify what software You use for ftp server? –  zuberuber Sep 6 '12 at 22:41
    
Oh sorry, it's VSFTPD –  NardCake Sep 6 '12 at 22:42
add comment

1 Answer

up vote 2 down vote accepted

edit /etc/vsftpd.conf and remove # from local_enable=YES, write_enable=YES and chroot_list_enable=YES.

now enter this to terminal sudo touch /etc/vsftp.chroot_list

and finally edit /etc/vsftp.chroot_list and add one user per line.

share|improve this answer
    
And that will give me access to that folder? –  NardCake Sep 6 '12 at 22:52
    
Ya that didn't solve my problem, I can't access edit/create/or download files in var/www. That's why i asked this question :| –  NardCake Sep 6 '12 at 23:01
    
User must have permission to read/write/execute in /var/www to do such a things. I suggest reading man chmod and man chown –  zuberuber Sep 6 '12 at 23:05
    
Ok thanks alot! approves answer –  NardCake Sep 6 '12 at 23:11
    
How can I specify the password in this file. Is it username:password pattern or username=password pattern. Please specify. –  Chanaka udaya Sep 25 '13 at 9:41
add comment

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.