PDA

View Full Version : [ubuntu] What's with the comma's ?



moonpup
May 4th, 2009, 12:27 PM
I just installed 9.04 Server and maybe never noticed this on earlier versions, but what are the 3 commas after my username in the /etc/passwd file? Empty variable fields like full name, phone, etc?

user:x:1000:1000:user,,,:/home/user:/bin/bash

Ateles
May 4th, 2009, 03:32 PM
Yes, you're right - those are the GECOS fields (for name, phone, etc.).

bab1
May 4th, 2009, 03:51 PM
... what are the 3 commas after my username in the /etc/passwd file? Empty variable fields like full name, phone, etc?

user:x:1000:1000:user,,,:/home/user:/bin/bash

As Ateles said, it's for GECOS fields. These are also known as comments. The utility finger will retrieve the comments from the CLI