-3

The second field in /etc/shadow shows "!" for user "bin" , "uucp" and few other service accounts as well. Can anyone explain the reason for "!" ?

  • Hi Anthony, Need to know in what cases we get "*!" in the field. Information provided for * or ! but I need !and * .. – Godwin Jan 25 '17 at 12:16
1

as per man page

 man 5 shadow

If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will not be able to use a unix password to log in (but the user may log in the system by other means).

| improve this answer | |
  • can we manually set "!*" for any user ? – Godwin Jan 25 '17 at 10:56
  • nobody:!*:16259:0:99999:7::: avahi:!!:16259:0:99999:7::: Why !* and !! for above account ? – Godwin Jan 25 '17 at 10:57

Not the answer you're looking for? Browse other questions tagged or ask your own question.