- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- "ls -l" showing group id instead of group name...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:08 AM
тАО02-19-2002 01:08 AM
"ls -l" showing group id instead of group name...
root@badbox:/> ls -la /etc | tail
lr-xr-xr-t 1 root 3 19 Aug 1 2001 vtgateway -> /usr/sbin
/vtgateway
lr-xr-xr-t 1 root 3 18 Aug 1 2001 vtserver -> /usr/sbin/
vtserver
drwxr-xr-x 4 bin 2 96 May 31 2001 vue
lr-xr-sr-t 1 root 3 14 Aug 1 2001 wall -> /usr/sbin/wall
lr-xr-xr-t 1 root 3 15 Aug 1 2001 whodo -> /usr/sbin/who
do
lrwxrwxrwt 1 root 3 13 Aug 1 2001 wtmp -> /var/adm/wtmp
-rw-r--r-- 1 root root 18 Jan 28 09:21 xtab
lr-xr-xr-t 1 root 3 9 Aug 1 2001 yp -> /usr/sbin
lr-xr--r-T 1 root 3 25 Aug 1 2001 ypbind -> /usr/lib/net
svc/yp/ypbind
lr-xr-xr-t 1 root 3 21 Aug 1 2001 zoneinfo -> /opt/dce/l
ib/zoneinfo
while another similar 11.0 box here shows what it should:
root@goodbox:/> ls -la /etc | tail
lr-xr-xr-t 1 root sys 19 Jul 6 2000 vtgateway -> /usr/sbin
/vtgateway
lr-xr-xr-t 1 root sys 18 Jul 6 2000 vtserver -> /usr/sbin/
vtserver
drwxr-xr-x 4 bin bin 96 Nov 30 2000 vue
lr-xr-sr-t 1 root sys 14 Jul 6 2000 wall -> /usr/sbin/wall
lr-xr-xr-t 1 root sys 15 Jul 6 2000 whodo -> /usr/sbin/who
do
lrwxrwxrwt 1 root sys 13 Jul 6 2000 wtmp -> /var/adm/wtmp
-rw-r--r-- 1 root root 422 Jan 25 17:44 xtab
lr-xr-xr-t 1 root sys 9 Jul 6 2000 yp -> /usr/sbin
lr-xr--r-T 1 root sys 25 Jul 6 2000 ypbind -> /usr/lib/net
svc/yp/ypbind
lr-xr-xr-t 1 root sys 21 Jul 6 2000 zoneinfo -> /opt/dce/l
ib/zoneinfo
It's gotta be permissions/ownership or the /etc/group file itself, eh?
on badbox the /etc/group file is owned by root:sys while goodbox was bin:bin (both read/read/read permissions). Changing goodbox to have the same settings on /etc/group as badbox didn't cause it to exhibit the problem.
I've looked at the /etc/group file, and don't see any syntax problems (but still, it needs to be something generic to the whole group file or all groups, not just one or two entry in the file.
please help?!!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:13 AM
тАО02-19-2002 01:13 AM
Re: "ls -l" showing group id instead of group name...
Is this the case?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:15 AM
тАО02-19-2002 01:15 AM
Re: "ls -l" showing group id instead of group name...
Any chance you could post the group file, or the first few lines at least, with ID's 2 & 3 (assuming they're there!!).
Rgds, Robin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:17 AM
тАО02-19-2002 01:17 AM
Re: "ls -l" showing group id instead of group name...
What is the output for:
# grep ':3:' /etc/group
# ll /etc/group
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:17 AM
тАО02-19-2002 01:17 AM
Re: "ls -l" showing group id instead of group name...
Or it could be that these groups never existed on the machine at all. The files you are listing were created on another machine and transfered here. In such case, as and when you define groups with group IDs 2 and 3, the names you allot to these groups will show up here.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:20 AM
тАО02-19-2002 01:20 AM
Re: "ls -l" showing group id instead of group name...
check out the following:
if you do a chgrp- command for some files/directories to another primary groupname with the same GID, and after this you delete the group with groupdel, you will see this effect! When you do a listing now, you will no longer see the name of the group, but the group identify number.
This works also by the same way with users!
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 01:28 AM
тАО02-19-2002 01:28 AM
Re: "ls -l" showing group id instead of group name...
Do you even have a /etc/group
file?
Maybe this file got zero'd out.
Check that first
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 02:23 AM
тАО02-19-2002 02:23 AM
Re: "ls -l" showing group id instead of group name...
Yes the /etc/group file exists, no it's not zeroe'd. Yes the groups 3 and 2 exist (it's all groups, except root which display this problem:
root@badbox:/> grep ":3:" /etc/group
sys::3:root,uucp
root@jensen:/> ls -l /u01/
total 2
drwxrwxrwx 4 acuity 20 1024 Oct 9 2000 acuity
drwxrwxrwx 3 oracle 101 96 Aug 2 2001 app
drwxr-xr-x 2 root root 96 Aug 2 2001 lost+found
root@jensen:/> grep ":101:" /etc/group
dba::101:oracle,root,apa01,sev01,spa01
root@badbox:/>
Attached is the group file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 02:28 AM
тАО02-19-2002 02:28 AM
Re: "ls -l" showing group id instead of group name...
(Doh!)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-19-2002 02:30 AM
тАО02-19-2002 02:30 AM
Re: "ls -l" showing group id instead of group name...
Is it my display screen, or do you have spaces/tabs in the file?
From the man page for group:
"No spaces should separate the fields or parts of fields on any line"
