|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How To Determine What Netgroups A User Belongs To?
Greetings!
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 |
| Sponsored Links | ||
|
|
|
#2
|
||||
|
||||
|
How about: Code:
$ ypcat netgroup | grep <username> ? $ ypcat netgroup lists all the netgroups and their members, crude but does the job... |
| Sponsored Links | ||
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Determine which package a file belongs to. | Linux Bot | Solaris BigAdmin RSS | 0 | 06-30-2009 08:30 AM |
| Determine folder belongs to mountpoint and logical volume | lamoul | HP-UX | 2 | 05-22-2009 03:37 PM |
| /home belongs to a user? | Stephan | AIX | 2 | 01-29-2009 01:28 AM |
| Tru64 - how can you determine the package where a file or binary belongs to? | Crazy_lenny | UNIX for Dummies Questions & Answers | 0 | 12-08-2008 07:46 AM |
| How to determine which SIP a package belongs | brizrobbo | Solaris | 0 | 02-17-2008 07:45 PM |