- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How To Determine What Netgroups A User Belongs...
Operating System - HP-UX
1820117
Members
2966
Online
109619
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
тАО12-07-2009 12:07 PM
тАО12-07-2009 12:07 PM
How To Determine What Netgroups A User Belongs To
In an NIS environment, what command given at the CLI will allow me to view/determine any/all netgroups that a user belongs to?
I am running HP-UX ver. 11.11 in a large NIS environment.
Note: I heard that the following command would provide the names of any/all netgroup that user "smith" belongs to. Unfortunately, it did not work. All helpful comments are
welcomed and appreciated.
# ypmatch 'smith.*' netgroup.byuser
ypmatch: can't match smith.*.
Reason: no such key in map
Thanks ahead of time!
Roger Clem
I am running HP-UX ver. 11.11 in a large NIS environment.
Note: I heard that the following command would provide the names of any/all netgroup that user "smith" belongs to. Unfortunately, it did not work. All helpful comments are
welcomed and appreciated.
# ypmatch 'smith.*' netgroup.byuser
ypmatch: can't match smith.*.
Reason: no such key in map
Thanks ahead of time!
Roger Clem
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2009 01:07 PM
тАО12-07-2009 01:07 PM
Re: How To Determine What Netgroups A User Belongs To
Shalom Roger,
how about an OS command.
id
That worked for me on NIS slaves.
SEP
how about an OS command.
id
That worked for me on NIS slaves.
SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-07-2009 06:36 PM
тАО12-07-2009 06:36 PM
Re: How To Determine What Netgroups A User Belongs To
Hi,
#ypwhich
ypwhich will return name of NIS server
#ypwhich -m
-m : will return available maps on NIS.
#ypwhich -m |grep -i netgroup
And your answer:
#ypcat -k netgroup |grep -i
Please find some documentation in docs.hp.com for more information on NIS.
Cheers!!
#ypwhich
ypwhich will return name of NIS server
#ypwhich -m
-m : will return available maps on NIS.
#ypwhich -m |grep -i netgroup
And your answer:
#ypcat -k netgroup |grep -i
Please find some documentation in docs.hp.com for more information on NIS.
Cheers!!
" Let Villagers Be Happy!! "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-11-2009 02:39 PM
тАО12-11-2009 02:39 PM
Re: How To Determine What Netgroups A User Belongs To
Thanks for your help guys!
Nido: Your answer was especially helpful!
All the best,
Roger Clem
Nido: Your answer was especially helpful!
All the best,
Roger Clem
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP