- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- id problems
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
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
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
тАО04-15-2002 12:58 AM
тАО04-15-2002 12:58 AM
id problems
I have a small problem, which I hope someone can help me with :).
If I run the 'id' command logged in under a specific user on 10.20 and 11.00, I get the uid, gid and the groups. If I run 'id >>username<< ' under 10.20 and 11.00, I get the same result.
However, if I run 'id' on 11i I get the uid, gid and groups. But if I run 'id >>username<<, I only get uid and gid.
Does anyone know why this is and is there a patch or a fix/change to fix this.
Thanks in advance
AG
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 01:39 AM
тАО04-15-2002 01:39 AM
Re: id problems
Running id on our 10.20, 11.0 or 11.11 systems produces the same output. Groups are shown. We have HPUXBase32 (11.11) installed.
If you do "cat /etc/group | grep username", do you get any results? If not, then id username won't show the groups.
Regards,
Mateja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 01:43 AM
тАО04-15-2002 01:43 AM
Re: id problems
# uname -a
HP-UX hpi2000 B.11.20 U ia64 3268867754 unlimited-user license
# id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
# id root
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)
Hope this helps. Regards.
Steven Sim Kok Leong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 01:50 AM
тАО04-15-2002 01:50 AM
Re: id problems
all our users are listed on nis, would this affect the output of id??
I have tried this on three 11i systems, two 11.00 systems and two 10.20 systems.
As root:
id and id root... is the same.
As nis user with only a primary group:
id and id user... is the same
As nis user with primary and secondary groups:
id: shows UID,GID and secondary groups.
id user: only shows UID and GID.
Any clues.
Thanks again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 02:30 AM
тАО04-15-2002 02:30 AM
Re: id problems
Hi,
Check if you have /etc/logingroup
If you do not have it, create it like this:
ln -s /etc/logingroup /etc/group
See man logingroup
Regards
Olav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 03:02 AM
тАО04-15-2002 03:02 AM
Re: id problems
YES, NIS will change the results of "id".
IE:
$ id root
uid=0(root) gid=3(sys) groups=105(dev)
$ id hbrown
uid=4058(hbrown) gid=105(dev)
$
Note that "root" is not NIS therefore more info is available.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-15-2002 03:06 AM
тАО04-15-2002 03:06 AM
Re: id problems
id user
do I get UID, GID and Groups, but if I run as the user:
id user
I only get, UID and GID.
This is only on 11i
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 10:23 AM
тАО01-11-2005 10:23 AM
Re: id problems
# id jchang
uid=7067(jchang) gid=108(discus)
Why I can not see the "groups" info?
Thank you for your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-11-2005 02:59 PM
тАО01-11-2005 02:59 PM
Re: id problems
Would you mind creating a new thread (question) out of your inquiry? It's a good question, but is really different from Alex's question.
Just my $.02. :-)
Mic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-13-2005 02:23 AM
тАО01-13-2005 02:23 AM
Re: id problems
In 11i , when you do id , it takes the group info from the first 20 lines of your /etc/group file. If you have more than 20 lines, it may not display it. change the position of your id / group in /etc/group file and see the difference.
James