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

Solution Verified - Updated -


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?


  • 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