You are viewing an old revision of this post, from December 4, 2014 @ 10:27:44. 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

December 4, 2014 @ 10:27:44Current Revision
Content
Deleted: <h2 style="color: rgb(81, 76, 76); font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;"> 
Deleted: Add your system User 
Deleted: </h2> 
Deleted: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;"> 
Deleted: 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. 
Deleted: </p> 
 Added: <h2 style="color: #514c4c; font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">Add your system User</h2>
 Added: <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: rgb(51, 51, 51);"> 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>
Deleted: &nbsp;</pre> 
Deleted: <div class="syntax"> 
Deleted: </div> 
Deleted: <p> 
Deleted: # useradd test # passwd test 
Deleted: </p> 
Deleted: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;"> 
 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>
Deleted: <a id="Disable_SSH_ access_for_FTP_users" name="Disable_ SSH_access_for_FTP_users" style="color: rgb(30, 130, 215);"></a> Added: <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>
Deleted: </p> 
Deleted: <h2 style="color: rgb(81, 76, 76); font-size: 18px; font-weight: bold; margin: 0px; font-family: arial; line-height: normal;">  
Deleted: Disable SSH access for FTP users 
Deleted: </h2> 
Deleted: <p style="line-height: 1.4em; font-family: arial; font-size: 12.7272720336914px;"> 
 Added: <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>
Deleted: The default user creation script will give a user the /bin/bash shell, which can be a little too powerful. &nbsp;If you don&#39;t want your users logging into your server via SSH, we need to know how to block this access. &nbsp;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: Added: <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>
Deleted: </p> 
Deleted: <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: rgb(51, 51, 51);"> 
Deleted: &nbsp;</pre> 
Deleted: <div class="syntax"> 
Deleted: </div> 
Deleted: <p> 
Deleted: usermod -s /sbin/nologin test 
Deleted: </p> 
 Added: <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