How To Make a Ftp User In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Log into your Linux server as the root user via SSH
2. Create a new group for the FTP users with the groupadd command, replacing groupname with the name of your new group:
$ sudo groupadd groupname
3. Add the new user to the FTP group you just created by running the following command, replacing username with the new user’s login name:
$ sudo usermod –a –G groupname username
4. Create a new directory for the new FTP user:
$ sudo mkdir /home/username
5. Create the new FTP user with the useradd command, replacing ftpuser with the new user’s name and /home/username with the path to the home directory you created in the previous step:
$ sudo useradd –d /home/username –g groupname –s /bin/false ftpuser
6. Set a password for the new FTP user using the passwd command:
$ sudo passwd ftpuser
7. Change the permissions for the home directory of the new FTP user by running the following command:
$ sudo chown ftpuser:groupname /home/username
8. Allow read and write access to the new user’s home directory by running the following command:
$ sudo chmod 755 /home/username
9. Test the new FTP user by logging into an FTP client with their credentials.