How to create an FTP Account in Linux

Create a FTP user group. eg: ftpaccounts

#/usr/sbin/groupadd ftpaccounts

Add a new user to this group, and set the default path of that user to /home/user/.

#/usr/sbin/adduser -g ftpaccounts -d /home/user/ testuser

Set a password for the newley created user.

#passwd testuser

Set ownership of /home/user to the testuser and ftpaccounts.

#chown testuser:ftpaccounts /home/user

Give Read/Write access to testuser and all members in ftpaccounts

#chmod 775 /home/user

Edit /etc/vsftpd/vsftpd.conf file and make sure 'local_enable=YES' is uncommented.

Restart the vsftpd service.

#/etc/init.d/vsftpd restart

Comments

Popular posts from this blog

SVN: File remains in conflict

12 tweakings for WHM/cPanel to speed up WordPress

HowTo: Enable extended logging for exim