- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User Groups
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
02-22-2007 04:20 AM
02-22-2007 04:20 AM
User Groups
I want to know which file to refer in order to get the secondary group assignment information directly instead of going through the SAM and manullay checking the group information for details.
Is there a file which gives me this info. I have checked /etc/group file but this does not provide me the exhaustive details
Thanks in Advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 04:29 AM
02-22-2007 04:29 AM
Re: User Groups
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 05:23 AM
02-22-2007 05:23 AM
Re: User Groups
As mentioned above, logins -g group will display all the members of that particular group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 05:25 AM
02-22-2007 05:25 AM
Re: User Groups
The /etc/group file lists all groups that have been configured on your system and the will list all users that are setup with each group as an additional group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 05:30 AM
02-22-2007 05:30 AM
Re: User Groups
what information are you looking for ?
# id login_id
will give u the roup membership info. As others have mentioned, you can also look at /etc/group file.
Rgds / james
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 06:35 AM
02-22-2007 06:35 AM
Re: User Groups
/etc/group
details are there
# id loginname
can see the info related this ID
AA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2007 12:08 PM
02-22-2007 12:08 PM
Re: User Groups
/etc/logingroup@ -> /etc/group
See group(4).
>I have checked /etc/group file but this does not provide me the exhaustive details
I'm not sure what you think is missing??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2007 02:08 AM
03-01-2007 02:08 AM
Re: User Groups
For NIS, use "ypcat group" to get the list of all groups, with GID and list of users UIDs (separated with ',' ).
The best options is still to use id or groups command. "id -Gn" to get the groups for the current user or "id -Gn uid" to get them for a user "uid"