How to create an FTP Account from console
To create an FTP Account from console, you need to follow the steps mentioned below:
1. Login to your server.
# ssh root@IP_address_of_your_server
2. Create a FTP user group. eg: ftpaccount
# /usr/sbin/groupadd ftpaccount
3. Add a new user to this group, and set the default path of that user to /home/user/.
# /usr/sbin/adduser -g ftpaccount -d /home/user/ testuser
4. Set a password for the newley created user.
# passwd testuser
5. Set ownership of /home/user to the testuser and ftpaccount.
# chown testuser:ftpaccount /home/user
6. Give Read/Write access to testuser and all members in ftpaccount
# chmod 775 /home/user
7. Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.
8. Restart the vsftpd service.
# /etc/init.d/vsftpd restart
Thank you.
1. Login to your server.
# ssh root@IP_address_of_your_server
2. Create a FTP user group. eg: ftpaccount
# /usr/sbin/groupadd ftpaccount
3. Add a new user to this group, and set the default path of that user to /home/user/.
# /usr/sbin/adduser -g ftpaccount -d /home/user/ testuser
4. Set a password for the newley created user.
# passwd testuser
5. Set ownership of /home/user to the testuser and ftpaccount.
# chown testuser:ftpaccount /home/user
6. Give Read/Write access to testuser and all members in ftpaccount
# chmod 775 /home/user
7. Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.
8. Restart the vsftpd service.
# /etc/init.d/vsftpd restart
Thank you.
Comments
Post a Comment