How to create a user for ftp server?

43,999

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:
43,999

Related videos on Youtube

Andrew Colin
Author by

Andrew Colin

Updated on September 18, 2022

Comments

  • Andrew Colin
    Andrew Colin over 1 year

    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?

    • Andrew Colin
      Andrew Colin over 11 years
      Oh sorry, it's VSFTPD
  • Andrew Colin
    Andrew Colin over 11 years
    And that will give me access to that folder?
  • Andrew Colin
    Andrew Colin over 11 years
    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 :|
  • zuberuber
    zuberuber over 11 years
    User must have permission to read/write/execute in /var/www to do such a things. I suggest reading man chmod and man chown
  • Chanaka udaya
    Chanaka udaya over 10 years
    How can I specify the password in this file. Is it username:password pattern or username=password pattern. Please specify.
  • jerinho.com
    jerinho.com about 5 years
    have you example how to edit /etc/vsftp.chroot_list. username + password