You are not logged in.

#1 2011-10-09 20:33:04

adr3nal1n
Member
Registered: 2010-09-23
Posts: 60

[SOLVED] ls -l shows GID rather than group name

Hi Guys,

As the title suggests, ls -l shows GID rather than the group name. (The username is listed correctly). The groups command also shows only GIDs and not the corresponding group names.

I have issued the pwconv, grpconv, pwck and grpck commands and these all run without error.

What am I missing here?

Any ideas much appreciated.

Thanks in advance.

Last edited by adr3nal1n (2011-10-10 10:03:09)

Offline

#2 2011-10-09 20:49:39

celf
Member
From: Espoo / Finland
Registered: 2004-09-15
Posts: 16

Re: [SOLVED] ls -l shows GID rather than group name

Check the permissions of groups file, it have to be readable for all. You can solve it with 'chmod 644 /etc/group' as root

Offline

#3 2011-10-09 21:36:35

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [SOLVED] ls -l shows GID rather than group name

If your group name (or username) is too long I think it will show the uid or gid instead of the username or group.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2011-10-10 10:02:14

adr3nal1n
Member
Registered: 2010-09-23
Posts: 60

Re: [SOLVED] ls -l shows GID rather than group name

Thanks very much Celf, you were correct, the /etc/group file was only readable by root. The chmod 644 fixed it.

Thanks again for your help, much appreciated.

Offline

Board footer

Powered by FluxBB