pure-pw Change user's directory

Hello,

My question relates to changing user johnsmith's ftp-root directory one level up using pure-ftpd with virtual users.

pure-pw show johnsmith gives me:
Code:
Login : johnsmith
Password: @gJL^878etc
UID: 2001 (ftpuser)
GID : 2001 (ftpgroup)
Directory: /var/www_1 <<<<<<<<
etc

I want to change the line:
Code:
Directory : /var/www_1
to
Code:
Directory: /var

How/Where do I change this?

Please help.
Kind regards,
Jamie
 
@SirDice, thank you. And also thanks for the link, where a quickly learned to do the pure-pw mkdb in order to commit the changes. (This is not a production server) - So I, (johnsmith), used the -D switch instead. I should have googled more. New to Linux. [ FreeBSD is not Linux -- Mod. ]

Just out of curiosity, does this mean that pure-pw usermod johnsmith -d / would give me FTP access to the entire file/folder structure of the server?

Thanks again.

Jamie.
 
Last edited by a moderator:
jamiebond said:
Just out of curiosity, does this mean that pure-pw usermod johnsmith -d / would give me FTP access to the entire file/folder structure of the server?
It sets the "home" directory of johnsmith to /. Any non-chrooted user will be able to browse the entire filesystem. Regardless of where the home directory is pointing at.
 
Back
Top