- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User group incorrect
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
01-15-2002 03:23 PM
01-15-2002 03:23 PM
User group incorrect
$ id smshpd
uid=15900(smshpd) gid=3026(sms) groups=201(staff)
# id smshpd
uid=15900(smshpd) gid=3026(sms)
I am seeing this difference for almost all users. Additional groups/incorrect secondary groups are shown when I run the "id" command as a normal user.
Is this how hpux is supposed to work? or is this a bug ? (I tried this on 3 systems and had the same problem)
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 03:31 PM
01-15-2002 03:31 PM
Re: User group incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 03:35 PM
01-15-2002 03:35 PM
Re: User group incorrect
See my original message for comparision
$ id -G smshpd
3026 201
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 03:43 PM
01-15-2002 03:43 PM
Re: User group incorrect
If not do so and then see what happens.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 04:03 PM
01-15-2002 04:03 PM
Re: User group incorrect
uid=15900(smshpd) gid=3026(sms) groups=201(staff
you must have 15900:3026 in /etc/passwd for this user. But this user is put in the staff group in /etc/group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 04:05 PM
01-15-2002 04:05 PM
Re: User group incorrect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 05:02 PM
01-15-2002 05:02 PM
Re: User group incorrect
To check:
#which id
/usr/bin/id
#env ((to check search path, etc.))
hth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2002 06:45 PM
01-15-2002 06:45 PM
Re: User group incorrect
I thought I saw what was happening. I just tested it on an 11.0 systsm and found...
When a non-superuser executes "id loginid" the output lists the uid, primary group, and then only the secondary groups that loginid AND the user executing the command are both in. When I ran the same "id loginid" command as root, all secondary groups for loginid were listed.
I tested the above as and for a couple of users and the results each time were what I list above.
Then I looked at your question again and assuming your first output is by a non-superuser and the second is by root, it's reversed from what I saw!
Go figure!
Darrell