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

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

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