Goal:
Maintaining a former colleagues system, I want to lock all password logins in order to only allow ssh key based logins.
Infos:
The CentOS 6.5 system does not offer any network based authentication features (no Kerberos, ldap, gssapi etc.,
/etc/nsswitch.conf
knows only "files")./etc/passwd
shows all non-system users I expect.
Issue:
/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.
Trial:
did a 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?