Go Back   The UNIX and Linux Forums > Operating Systems > HP-UX
google site



HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2009
Registered User
 

Join Date: Dec 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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  
Old 12-09-2009
TonyFullerMalv's Avatar
Registered User
 

Join Date: Sep 2008
Location: Malvern, Worcs. U.K.
Posts: 1,021
Thanks: 0
Thanked 1 Time in 1 Post
How about:

Code:
$ ypcat netgroup | grep <username>

?
$ ypcat netgroup lists all the netgroups and their members, crude but does the job...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:00 AM.