Friday, January 13, 2017

Create Ftp User

How to create a FTP user with specific /dir/ 

1. mkdir /var/www/mydomain.com
2. mkdir /var/www/mydomain.com/html
3. useradd <-username>
4. passwd <-username>
5. chown –R <-username> /var/www/mydomain.com



Set the home directory of the user with the following command

usermod -d /var/www/html/ ftpuser

No comments:

Post a Comment