How to create a FTP user with specific /dir/
Set the home directory of the user with the following command
1. mkdir /var/www/mydomain.com
2. mkdir /var/www/mydomain.com/html
3. useradd <-username>-username>
4. passwd <-username>-username>
5. chown –R <-username> /var/www/mydomain.com-username>
2. mkdir /var/www/mydomain.com/html
3. useradd <-username>-username>
4. passwd <-username>-username>
5. chown –R <-username> /var/www/mydomain.com-username>
Set the home directory of the user with the following command
usermod -d /var/www/html/ ftpuser
No comments:
Post a Comment