Maintaining a former colleagues system, I want to lock all password logins in order to only allow ssh key based logins.
The CentOS 6.5 system does not offer any network based authentication features (no Kerberos, ldap, gssapi etc.,
/etc/nsswitch.confknows only "files").
/etc/passwdshows all non-system users I expect.
/etc/shadow shows only half of them. Locking their passwords with
passwd -l username worked.
Now I would like to see entries for the other users as well and that their passwords are locked, too.
passwd -l username for one of the "missing" users, and the system gives me
passwd: Success . But I still see no entry for this user in shadow. Any ideas?