Adding chrooted FTP users outside of Plesk

To add a chrooted FTP user outside of Plesk properly, you need to:

  • Create the user with the home directory as the root of what they can access
  • Give the user a password
  • Make their primary group psacln
  • Add them to the psaserv group as well

# useradd username -d /var/www/html/website/slideshow/
# echo "password" | passwd username --stdin
Changing password for user username.
passwd: all authentication tokens updated successfully.
# usermod -g psacln username
# usermod -G psaserv username
# lftp username:password@localhost
lftp username@localhost:/> cd ..
lftp username@localhost:/>

Printed from: http://rackerhacker.com/2007/04/27/adding-chrooted-ftp-users-outside-of-plesk/ .
© Major Hayden 2012.

5 Comments   »

  • Webagentur says:

    Thank you ... this has me very helped.

  • BSIAND says:

    Thank You very much!!!

  • Daniel says:

    Thank You for the post.
    this helped me alot

  • Alessandro says:

    There is an easier way to do this. Simply oper /etc/proftpd.conf and add this line:

    DefaultRoot     ~               group

    after this one:

    DefaultRoot     ~               psacln

    Substitute group with the user group to chroot in their home directories.

  • Steve says:

    Don't forget you need to be logged in at the root baby

    su -

    right. ( i did so I am adding the comment for me when I come back in a year to add another user)

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this