- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ls command show groupid and not groupname
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
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
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
09-14-2005 04:31 PM
09-14-2005 04:31 PM
ls command show groupid and not groupname
I have a rp5400 with HP-UX 11.00
The problem is that when I run ls -l I see the group id and not the group name
For example, the file /etc/group I see:
-r--r--r-- 1 bin 2 1026 Sep 2 11:13 group
and not
-r--r--r-- 1 bin bin 1026 Sep 2 11:13 group
I checked the /etc/group for corrupted line
I stopped and restarted the daemon pwgrd but the problem continue
pwck and grpck no report problem
When I use sam for configuration of users and groups I can add a new group but
I can not add a new user within the group created. I get the follwing error:
could not modify the /etc/group file
Whats wrong ?
Thank in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:38 PM
09-14-2005 04:38 PM
Re: ls command show groupid and not groupname
It means, your group is removed or deleted. it will use the deleted group id instead group name
Eg:
# groupadd test.txt
# chown bin:test test.txt
# ls -l test.txt
rw-r--r-- 1 bin test <.......>
# groupdel test
# ls -l test.txt
rw-r--r-- 1 bin 501 <......>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:41 PM
09-14-2005 04:41 PM
Re: ls command show groupid and not groupname
Do an ls -l /etc/group and post that output.
Attach your /etc/nsswitch.conf file. Does it matter if you do an ls -l file as root?
If you kill pwgrd (and not restart it -- you don't really need it), does that change the behavior of ls -l? Finaaly, do a bdf and make sure that there is free space in all filesystems.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:46 PM
09-14-2005 04:46 PM
Re: ls command show groupid and not groupname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:49 PM
09-14-2005 04:49 PM
Re: ls command show groupid and not groupname
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:51 PM
09-14-2005 04:51 PM
Re: ls command show groupid and not groupname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:53 PM
09-14-2005 04:53 PM
Re: ls command show groupid and not groupname
I run the command as root:
ls -l /etc/group
-r--r--r-- 1 bin 2 1026 Sep 2 11:13 group
If I stop pwgrd, I see the same
I see free space when I run bdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 04:59 PM
09-14-2005 04:59 PM
Re: ls command show groupid and not groupname
I attach the file /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 06:21 PM
09-14-2005 06:21 PM
Re: ls command show groupid and not groupname
# /usr/sbin/grpck /etc/group
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 06:51 PM
09-14-2005 06:51 PM
Re: ls command show groupid and not groupname
I have checked your /etc/group file & i found it look good, but if there is any control character in this file so it might be giving this problem. Please try the following steps
1. cp /etc/group /etc/group.safe
2. cp /usr/newconfig/etc/group /etc/group
As i have seen that u have not deifned any special group so there will not be any problem & after that just reboot the system , Hope it will solve your problem
vikas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 07:02 PM
09-14-2005 07:02 PM
Re: ls command show groupid and not groupname
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 08:28 PM
09-14-2005 08:28 PM
Re: ls command show groupid and not groupname
# chown bin:bin /etc/group
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2005 10:56 PM
09-14-2005 10:56 PM
Re: ls command show groupid and not groupname
passwd
bin:*:2:2::/usr/bin:/sbin/sh
group
bin::2:root,bin
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 02:30 AM
09-15-2005 02:30 AM
Re: ls command show groupid and not groupname
# chown bin:bin /etc/group
chown: unknown group id bin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 02:35 AM
09-15-2005 02:35 AM
Re: ls command show groupid and not groupname
Also, does this return output:
finger bin
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 02:38 AM
09-15-2005 02:38 AM
Re: ls command show groupid and not groupname
# cat -v /etc/group
Any "funny" characters show up?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:02 AM
09-15-2005 03:02 AM
Re: ls command show groupid and not groupname
as Stephen suggested check for bad characters into /etc/group, it sounds like it is corrupted. Otherwise re-take a fresh /etc/group file by
mv /etc/group /tmp/group.OLD
cp /usr/newconfig/etc/group /etc
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 03:03 AM
09-15-2005 03:03 AM
Re: ls command show groupid and not groupname
Login name: bin
Directory: /usr/bin Shell: /sbin/sh
Never logged in.
No unread mail
No Plan.
grpck no report errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 04:35 AM
09-15-2005 04:35 AM
Re: ls command show groupid and not groupname
Do a more /etc/group
you should have as third line something like:
bin::2:root,bin,lp,....
It cannot give the name of the group if it is not in /etc/group...
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 11:50 AM
09-15-2005 11:50 AM
Re: ls command show groupid and not groupname
I found the /sbin/ls show correctly but /usr/bin/ls show bad
I think that the problem is in functions getpwnam, getgrnam, etc. in libc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 07:57 PM
09-15-2005 07:57 PM
Re: ls command show groupid and not groupname
Can you post
# what /usr/lib/libc.2
# what /usr/lib/libdld.2
# what /usr/lib/libcurses.1
Also,
# ldd /usr/bin/ls
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 08:04 PM
09-15-2005 08:04 PM
Re: ls command show groupid and not groupname
-AV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2005 11:48 AM
09-16-2005 11:48 AM