Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have created multiple users that do not have the ability to login to the bash shell but should be able to login to ftp sessions.
I have an older RHEL 7.2 server that is set up identical to our new RHEL 8.7 server, the users and home directories and permissions etc are all identical. (as far as I am aware)
I have even created a new additional testuser just to confirm this is not working for any of the created users. I am not sure if there is some new security implementation on RHEL 8.7 that is preventing this or what. Any suggestions would be greatly appreciated.
Example of CLI I/O below:
[root@hostname~]# useradd -d /file/path/Testuser -s /dev/null testuser
[root@hostname~]# passwd testuser
Changing password for user testuser.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
Attempt to test ftp session logon ability:
[root@hostname ~]# ftp hostname
Connected to hostname (xxx.xx.xxx.xx).
220 (vsFTPd 3.0.3)
Name (hostname:root): testuser
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
The password is 100% for certain being entered correctly but also was flagged as "BAD PASSWORD" but allowed me to complete the commands and they seemed to be accepted and applied.
I have created multiple users that do not have the ability to login to the bash shell but should be able to login to ftp sessions.
I have an older RHEL 7.2 server that is set up identical to our new RHEL 8.7 server, the users and home directories and permissions etc are all identical. (as far as I am aware)
I have even created a new additional testuser just to confirm this is not working for any of the created users. I am not sure if there is some new security implementation on RHEL 8.7 that is preventing this or what. Any suggestions would be greatly appreciated.
Example of CLI I/O below:
[root@hostname~]# useradd -d /file/path/Testuser -s /dev/null testuser
[root@hostname~]# passwd testuser
Changing password for user testuser.
New password:
BAD PASSWORD: The password is shorter than 8 characters
Retype new password:
passwd: all authentication tokens updated successfully.
Attempt to test ftp session logon ability:
[root@hostname ~]# ftp hostname
Connected to hostname (xxx.xx.xxx.xx).
220 (vsFTPd 3.0.3)
Name (hostname:root): testuser
331 Please specify the password.
Password:
530 Login incorrect.
Login failed.
The password is 100% for certain being entered correctly but also was flagged as "BAD PASSWORD" but allowed me to complete the commands and they seemed to be accepted and applied.
Proftpd can use passwd maps that are not the system passwd file (similar to Apache's basic auth). You might want to look at that, or anonymous login. I'm guessing the config won't just let any user you make up login willy-nilly, so probably you'll have to change the config file as well. It's like that in proftpd (which is what I'm familiar with).
Have you examined the VSFTP documentation on creating and authenticating virtual accounts? you do not need an OS account at all, if they are only getting FTP access.
PS: you can do this for SFTP access in the SSHD configuration if you want to support SFTP directly, but that DOES require a real OS account.
I have done both, but a decade or more ago and I have not had coffee yet today....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.