Quantcast
Viewing latest article 5
Browse Latest Browse All 12

Answer by Brian Postow for How to prevent a user from login in, but allow "su - user" in Linux?

As I mentioned in a comment, I think that you can still su into an account with an invalid shell. So if you set the user's shell to /dev/null or whatever the shell of bin is, you should be able to still su into that user... but any attempt to log in in any way will quit you back out...


Viewing latest article 5
Browse Latest Browse All 12

Trending Articles