major.io words of wisdom from a systems engineer

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:[email protected]
lftp [email protected]:/> cd ..
lftp [email protected]:/>