Find the answer to your Linux question:
Results 1 to 3 of 3
What does :!: after the username in the etc\passwd file means? I know :x: means that the password is encrypted and that it is located in the shadow file, but ...
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    1

    What does :!: after the username in the etc\passwd file means?

    What does :!: after the username in the etc\passwd file means? I know :x: means that the password is encrypted and that it is located in the shadow file, but not sure about :!:
    Last edited by MikeTbob; 07-08-2011 at 01:37 AM. Reason: disabled smilies

  2. #2
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    The man page for the shadow file ("man 5 shadow") gives us the details of the password field:
    Code:
               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).
    So the '!' indicates that the user cannot be logged in as using normal means. You could still act as the user by using sudo or su, or by using SSH with an accepted key.
    DISTRO=Arch
    Registered Linux User #388732

  3. #3
    Super Moderator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,144
    Also, Welcome to the forums. For future reference you can disable the smilies in your post by selecting the right option (disable smilies) before you submit your post.
    I tried to fix it for you but I don't think I can.

    EDIT: There we go, I figured it out.
    Last edited by MikeTbob; 07-08-2011 at 01:37 AM. Reason: See EDIT:
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...