linux - What do "!" and "*" mean in the password section in /etc/shadow? -


in /etc/shadow file, looks follows.

root:!:15764:0:99999:7::: daemon:*:15749:0:99999:7::: 

what these characters ("!" , "*") mean in password section?

from manual page shadow(5):

encrypted password
refer crypt(3) details on how string interpreted.

if password field contains string not valid result of crypt(3), for instance ! or *, user not able use unix password log in (but user may log in system other means).

this field may empty, in case no passwords required authenticate specified login name. however, applications read /etc/shadow file may decide not permit access @ if password field empty.

this field may empty, in case no passwords required authenticate specified login name. however, applications read /etc/shadow file may decide not permit access @ if password field empty.

also, program passwd (see passwd(1)) can locked create these locked accounts prefixing password !:

-l, --lock
lock password of named account. option disables password changing value matches no possible encrypted value (it adds '!' @ beginning of password).


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -