Create Ftp User Account On Linux Server
Sometime we need to create ftp user account on Linux server which do not have any any control panel installed on it, but we don’t know the exact steps. This article will guide you in creating FTP user account, please follow the below instructions:
Steps for creating new FTP user:
First, create a new user and assign ‘nologin’ shell and ftp group.
# useradd -m -G ftp -s /sbin/nologin -d /home/user ftpuser
The above command create a user with nologin shell, means ssh login will be disabled for this user. Also, it will add newly created user to ‘ftp’ group. You also need to change the default directory for user as per your needs.
Now create password for ftpuser:
#passwd ftpuser
Steps for converting an existing user to FTP user:
# usermod user -G ftp -s /sbin/nologin -d /home/ftpuser
Now you can login in FTP account. If still you are facing some problems with login, make sure ftp login is enable in FTP configuration file:
Local_enable=YES
After making these changes to configuration file, do not forget to restart your ftp server.