How To Create a FTP User In Linux

How To Create a FTP User In Linux

 For this example, I am using Vsftpd, as it is the default FTP client distributed with RedHat, however these instructions should apply to most FTP server applications.

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
    • Related Articles

    • New Access Management User setup on Linux

      1) Login to your accounts.cartika.com account 2) Select your access management service (customers with managed infrastructure in both the US and CAD will have two) 3) Navigate to Login to SolidCP -> Click Login 4) Click on Users under your Hosted ...
    • Linux

      Linux     System Information: Print Kernel and OS Release Versions: uname -r (or uname -a for all info) 2.6.32-531.29.2.lve1.3.11.1.el6.x86_64 cat /etc/*release* CloudLinux Server release 6.6 (Leonid Kizim) Linux Watch Limit: ...
    • Increase FTP Quota

      Login into hsphere account and navigate to FTP/User Account > FTP User > Quota > click the pencil and paper icon Enter new disk quota value and hit submit Go back to FTP User page, verify changes took effect under Quota with the newly set value ...
    • Using FTP with Microsoft FrontPage

      Using FTP with Microsoft FrontPage Microsoft FrontPage supports two methods of publishing files to a web server: HTTP POST and FTP. HTTP POST is the default publishing feature in Microsoft FrontPage (using the PUBLISH button), and the preferred ...
    • MYSQL basic user permissions

       Grant Different User Permissions On a MYSQL database. Here is a short list of other common possible permissions that users can enjoy. ALL PRIVILEGES- as we saw previously, this would allow a MySQL user all access to a designated database (or if no ...