mymac is my personal user account on juggernaut machine
What does that x, 1000 , 1000 mean? And the commas that follow?
In analogy, also explain:
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
man 5 passwd:
/etc/passwd contains one line for each user account, with seven fields delimited by colons (“:”). These fields are: · login name · optional encrypted password · numerical user ID · numerical group ID · user name or comment field · user home directory · optional user command interpreter
x would be the optional encrypted password, about which the manpage further goes on to say:
The encrypted password field may be blank, in which case no password is required to authenticate as the specified login name. However, some applications which read the /etc/passwd file may decide not to permit any access at all if the password field is blank. If the password field is a lower-case “x”, then the encrypted password is actually stored in the shadow(5) file instead; there must be a corresponding line in the /etc/shadow file, or else the user account is invalid. If the password field is any other string, then it will be treated as an encrypted password, as specified by crypt(3).
The commas are separating the GECOS fields:
The typical format for the GECOS field is a comma-delimited list with this order:
- User's full name (or application name, if the account is for a program)
- Building and room number or contact person
- Office telephone number
- Any other contact information (pager number, fax, etc.)
mymac:x:1000:1000:juggernaut,,,:/home/mymac:/bin/bash | | | | | | | | | | | | | Login shell | | | | | Home directory | | | | GECOS fields (full name, etc.) | | | Primary Group id | | User ID | Encrypted password indicator Username