vsftpd wont work for users added with /sbin/nologin
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
vsftpd wont work for users added with /sbin/nologin
did useradd -s /sbin/nologin user1. then added /usr/sbin/nologin to
/etc/shells, but it still won't let those users ftp in. normal users
work fine. shouldn't this work? any help is appreciated
Did you try creating a normal user and then changing the shell to /sbin/nologin or /bin/false by editing /etc/passwd or using usermod. Do you see any difference when you set it to /bin/false instead of /sbin/nologin.
As you said it worked in past what changed you have made to the system since then. Any changes recently performed which resulted in this. When you try to login with the user who have got shell set to /sbin/nologin what is the exact error message that you get? Did you try taking packet trace. If yes, what do you see in packet trace?
Last edited by T3RM1NVT0R; 04-03-2015 at 01:45 PM.
You are not answering to all the queries, without the details how we suppose to know what's going on? You said failed login but what about the error code and what about the other questions that I have posted?
Do you have config file from the previous setup. Did you compare the previous and the current config file. As you said you are setting it up again that means it did not work in past. I mean this is a new setup and it never worked with /sbin/nologin. The best way I can think of is to first compare the configs files from previous setup with this one. If that doesn't give you any clue then go with packet trace to see if you find something there.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.