Linux: how to prevent a user from login in, but allow "su - user"

Posted by NoozNooz42 on Server Fault See other posts from Server Fault or by NoozNooz42
Published on 2010-06-09T15:13:18Z Indexed on 2010/06/09 15:23 UTC
Read the original article Hit count: 355

Filed under:
|
|

How do you allow a user to log in using "su - user" but prevent the user from login in using SSH?

I tried to set the shell to /bin/false but the when I try to su it doesn't work.

Are there several ways to only allo logins by su?

Is SSH's AllowUser the way to go? (how would I do this if it's the way to go)

© Server Fault or respective owner

Related posts about linux

Related posts about login