I've installed Open Panel, which seems to ship with Pure FTP server. I added a linux user ftpuser, and now I can log in with it. I'd like to specify a directory to which this user starts with when it logs in.
How can I achieve this?
You can use a program like usermod
with its -d
option if you have that installed:
usermod -d /new/ftpuserhome ftpuser
if you don't have that, you can also edit the /etc/passwd
file as root
and change the 6th field (the one before the last field (:
is the field separator).
/etc/shadow
and /etc/pureftpd.passwd
, as there is no fall-through mode for looking up information.