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:/>

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2007/04/27/adding-chrooted-ftp-users-outside-of-plesk/ .
© Major Hayden 2010.

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 , TrackBack URI

Leave a Reply