How can I create passwordless users and restrict them from login using "su"?

Solution Verified - Updated -

Issue

  • How to create a user ID with no (NP) password?

  • There is a option like passwd -d (user ID) or passwd -u -f (user ID), to set no password. But in this option any user can able to do su with any other available ID's. Is there any other way to restrict local users to do an su 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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In