Quantcast
Channel: How to prevent a user from login in, but allow "su - user" in Linux? - Server Fault
Viewing all articles
Browse latest Browse all 12

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

$
0
0

If an account has no password (passwd -d username), they can't log in interactively (console, SSH, etc.). If they have a valid shell, su will still work. Note the "interactively," though; if somebody decides to set up an SSH keypair for the account, it will work!


Viewing all articles
Browse latest Browse all 12

Trending Articles