Bobcares

ProFTPD create user : How to add a new user?

by | Dec 16, 2019

Looking for ProFTPD create user option?

ProFTPD is an opensource software for uploading files to a server. It supports TLS (SSL) for securing connections.

By creating a user in Proftpd, it’s an easy task to upload or download files to the required folder.

At Bobcares, we often get requests from our customers for creating the ProFTPD user as part of our Server Management Services.

Today, let’s get into the details on how our Support Engineers help the customers to create the ProFTPD user.

 

Need for ProFTPD user?

Creating a user in ProFTPD is a simple task. This can simplify the task of uploading and downloading files by remote users like the developers of the website etc.

By default, the configuration file of ProFTPD is :

/etc/proftpd.conf

The installation of Proftp service is rather simple when using package managers like yum, apt-get, etc. However, for the user to upload or download files via FTP, there has to be a specific user associated with each folder. This requires adding FTP users.

 

How to add the user in ProFTPD

At Bobcares, where we have more than a decade of expertise in managing servers, we see many customers requesting to create users in ProFTPD.

Now, let’s see how our Support Engineers help the customer in creating ProFTPD users.

 

Creating ProFTPD Users

The Proftpd user creation involves a series of steps.

We begin by creating the FTP user by the following command,

useradd username

After that, we create a password for this user.

passwd username

Usually, the home directory for the “proftpd” user will be set to the default home directory, which may not be useful.
So we need to modify the home directory of the FTP user. To set a new user with the /var/www/ folder as the home folder for accessing easily, we use:

usermod -m -d /var/www/ username

Finally, we restart the Proftd service.

service proftpd restart

Now it is very easy to access from the FTP server. We also suggest the customers to use Filezilla or any other FTP client to access the FTP server.

 

Configuring virtual users

Usually, ProFTPD uses the system’s /etc/passwd file by default so its users are the same as system users. Virtual users are defined as  FTP-only user accounts.

These users login to proftpd, but who are separated from the normal system users, and who do not have entries in /etc/passwd. Here the user data was fetched via a name, a UID, a GID, a home directory, and a shell.

We helped the customers in configuring ProFTPd with virtual users by following steps.

Initially, we opened the ProFTPd configuration file.

/etc/proftpd/proftpd.conf

Specify the following parameters in the configuration file.

ProFTPD create user

Here, mod_auth_file.c is used for authorization of users. Hence, the logins and passwords are taken from /etc/proftpd/ftpd.passwd file.

After this, we have create the test user.

ftpasswd --passwd --file=/etc/proftpd/ftpd.passwd --name=test --uid=60 --gid=60 --home=/srv/ftp/test/ --shell=/bin/false

As a result of this command, a new file /etc/proftpd/ftpd.passwd file will be created, which is similar to /etc/passwd.

We can specify any UID or GID except 0 since its for root.

In this command, we can use any UID or GID and also even UID or GID of the user in /etc/passwd.

Then we check the configuration is proper or not by the following command.

proftpd -t

Finally, we restarted the ProFTPd for applying the changes made.

/etc/init.d/proftpd restart

The user password in the file is created in an encrypted format, so we change the password by the following command.

ftpasswd --passwd --file=/etc/proftpd/ftpd.passwd --name=test --change-password

We provide the FTP username and password to the customer to connect via FTP.

[Having trouble creating ProFTPd users? We are available 24×7 to help you.]

 

Conclusion

In short, ProFTPD creates users either via default method or via virtual users. Today, we discussed it in detail and saw how our Support Engineers properly added FTP users for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

6 Comments

  1. Mark Lee

    Hi, is “passwd” in the example “ftpasswd –passwd –” the actual password? Eg: ftpasswd –Mypa55wd! –“

    Reply
    • Mark Lee

      Also what is the purpose of adding AuthGroupFile /etc/proftpd/ftpd.group to the conf file?

      Should we create ftpd.group and what should we put in it?

      Thanks.

      Reply
      • Sijin George

        Hello Mark,
        Also, the AuthGroupFile helps to set restrictions on files for certain groups. For this, we need to use the ftpasswd command with –group option. This can create the ftpd.group file or update existing ones.

        Reply
    • Sijin George

      Hello Mark,
      The ftpasswd command will prompt for the password. That’s where you need to set your desired password.

      Reply
  2. Roy van Arem

    Actually the default file is: /etc/proftpd/proftpd.conf

    Reply
    • Linsa SV

      Hello Roy,

      Default file in RHEL/CentOS server is /etc/proftpd.conf and default file in Ubuntu/Debian server is /etc/proftpd/proftpd.conf.

      Reply

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF