There are weird commas after the real-name parameter of some lines in my /etc/passwd
file.
kye:x:1000:100:Kye,,,:/home/kye:/bin/bash
What gives? Why are they there? Can I remove them?
Answer
Some tool you used to create the account (adduser?) added them. The tool in question sees the comment / real name field in the passwd file as a GECOS field:
http://en.wikipedia.org/wiki/Gecos_field
The field values are
- 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.)
However, I cannot think of an applicaton which uses them. I believe these fields are close to useless. Use a different tool for adding users (useradd?) or explicitely give a value for the GECOS field if possible.
Comments
Post a Comment