You are viewing an old revision of this post, from August 20, 2018 @ 16:55:00. See below for differences between this version and the current revision.

Create new FTP user

Add your system User

Yes, it is this simple, creating a new user for ftp access in vsftpd is as easy as creating a new valid linux system user.

 # useradd test
# passwd test

Disable SSH access for FTP users

The default user creation script will give a user the /bin/bash shell, which can be a little too powerful.  If you don't want your users logging into your server via SSH, we need to know how to block this access.  If you change the shell to /bin/false, the users will only be able to login via ftp or mail if you have that setup. Here is how to modify your users:

# usermod -s /sbin/nologin test

Revisions

Revision Differences

August 20, 2018 @ 16:55:00Current Revision
Content
Unchanged: <h2 style="color: #514c4c; font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">Add your system User</h2>Unchanged: <h2 style="color: #514c4c; font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">Add your system User</h2>
Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;">Yes, it is this simple, creating a new user for ftp access in vsftpd is as easy as creating a new valid linux system user.</p>Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;">Yes, it is this simple, creating a new user for ftp access in vsftpd is as easy as creating a new valid linux system user.</p>
Deleted: <pre id="pre-0" style="color: white; padding: 40px 20px 20px; overflow-x: hidden; border-radius: 6px; font-size: 12.7272720336914px; line-height: normal; background: #333333;"> # useradd test # passwd test</pre> Added: <pre id="pre-0" style="color: white; padding: 40px 20px 20px; overflow-x: hidden; border-radius: 6px; font-size: 12.7272720336914px; line-height: normal; background: #333333;"> # useradd test</pre>
 Added: <pre style="color: white; padding: 40px 20px 20px; overflow-x: hidden; border-radius: 6px; font-size: 12.7272720336914px; line-height: normal; background: #333333;"># passwd test</pre>
Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;"><a id="Disable_SSH_ access_for_FTP_users" style="color: #1e82d7;" name="Disable_ SSH_access_for_ FTP_users"></a></p>Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;"><a id="Disable_SSH_ access_for_FTP_users" style="color: #1e82d7;" name="Disable_ SSH_access_for_ FTP_users"></a></p>
Unchanged: <h2 style="color: #514c4c; font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">Disable SSH access for FTP users</h2>Unchanged: <h2 style="color: #514c4c; font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">Disable SSH access for FTP users</h2>
Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;">The default user creation script will give a user the /bin/bash shell, which can be a little too powerful.  If you don't want your users logging into your server via SSH, we need to know how to block this access.  If you change the shell to /bin/false, the users will only be able to login via ftp or mail if you have that setup. Here is how to modify your users:</p>Unchanged: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;">The default user creation script will give a user the /bin/bash shell, which can be a little too powerful.  If you don't want your users logging into your server via SSH, we need to know how to block this access.  If you change the shell to /bin/false, the users will only be able to login via ftp or mail if you have that setup. Here is how to modify your users:</p>
Unchanged: <pre id="pre-1" style="color: white; padding: 40px 20px 20px; overflow-x: hidden; border-radius: 6px; font-size: 12.7272720336914px; line-height: normal; background: #333333;"># usermod -s /sbin/nologin test</pre>Unchanged: <pre id="pre-1" style="color: white; padding: 40px 20px 20px; overflow-x: hidden; border-radius: 6px; font-size: 12.7272720336914px; line-height: normal; background: #333333;"># usermod -s /sbin/nologin test</pre>

Note: Spaces may be added to comparison text to allow better line wrapping.

No comments yet.

Leave a Reply