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.
When I set a user's shell to /bin/false they can't login using ssh.
When I set it to /bin/bash the user can get in, however, the user can also travel up the tree all the way to /
What gives? I have it set to chroot them, why does it work with bash but not the false shell?
I have vsftpd set to not check for a valid shell either.
No. With proftpd it works fine with /bin/false
I think /bin/false is only so that the user cannot execute shell commands. Only ftp commands are accepted.
you must have messed up something else, I just installed vsftpd just to test this and make sure the solution given works and it does, if you login and cd .. it just takes you back to the same dir. My user's shell is set to /bin/bash as well. If you try to go back to / it'll act as if the dir was succesfully changed, but look at ls, you're still in the user's home dir.
Here's the thing though. When I use FileZilla, and connect I can go up and down in the tree, anywhere I want. I'm thinking that FileZilla is not acting as an ftp client, but more of a secure shell client.
How do I prevent users that are logging into ssh from leaving their home directory then?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.