Will 'nullok' option allow users to login without entering a password?

Solution Verified - Updated -

Issue

I have a nullok entry in /etc/pam.d/system-auth file:

$ more /etc/pam.d/system-auth |grep nullok
auth        sufficient    pam_unix.so nullok try_first_pass
password    sufficient    pam_unix.so md5 remember=6 shadow nullok try_first_pass use_authtok

If an enabled account on the system is not password protected, then the users can login with no password. How do I fix this issue?

Environment

  • Red Hat Enterprise Linux 4/5/6/7
  • pam

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.