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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content