As we know we can add folder to user using useradd user -p user_passwd -d /home/ftp/user_dir/ -s /bin/false but how to add folder to existing user, for example /home/ftp/root for root ?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|
Basically you don't add, you change home directory.
if you want to move existing files, use this:
Allowing root to access via FTP it not good practice, it's security hole. Even if this, I would rather recommend to create symlink to target folder from existing directory. |
|||
|
|