How can I create passwordless users and restrict them from login using "su"?
Issue
-
How to create a user ID with no (NP) password?
-
There is a option like
passwd -d (user ID)
orpasswd -u -f (user ID)
, to set no password. But in this option any user can able to dosu
with any other available ID's. Is there any other way to restrict local users to do ansu
to other passwordless local users.
Environment
- Red Hat Enterprise Linux 5.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.