[SunHELP] nisgrep user name-help!

Xiaomei Zhou sunhelp at sunhelp.org
Wed Feb 28 08:32:13 CST 2001


Dennis and John,

Just want to express my thanks for explaining this NIS+ mystery. I read every single 
page of All About Administering NIS+ and searched all the online documents but 
couldn't find the answer to my question. Thank you for all your help and patience to 
explain the detail for me.

Mei

From: "Lund, Dennis" <Dennis.Lund at sciatl.com>
To: "'sunhelp at sunhelp.org'" <sunhelp at sunhelp.org>
Subject: RE: [SunHELP] nisgrep user name-help!
Date: Wed, 28 Feb 2001 08:49:04 -0500
Reply-To: sunhelp at sunhelp.org

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0A18D.3668496E
Content-Type: text/plain;
	charset="iso-8859-1"

I don't think it is a permission problem.  Don't know NIS+, but I think it
works 
just like NIS did.  A user is not listed in the "primary group" because it
is 
the user primary group.  It is shown in the password listing.

Example:
	Users primary group is 100 (user)
	Users secondary group is 200 (engr)

	The users primary group is defined in the password database and does
not
	need to be redefined in the group database.

		smith:x:1001:100:John Smith:/export/home/smith:/bin/ksh

	The users secondary group is defined in the group database.  It is
not
	defined in the password database.

		engr::200:smith,jones

If this is not correct, would someone please correct me.

Dennis L. Lund

-----Original Message-----
From: Li John-a16118 [mailto:J.Li at motorola.com]
Sent: Tuesday, February 27, 2001 9:07 PM
To: sunhelp at sunhelp.org
Subject: RE: [SunHELP] nisgrep user name-help!


Hello Mei,

I don't think this is due to permission restriction. Maybe you can list the
primary group members by the following command:
%nisgrep 'gid=<primary groupid>' passwd.org_dir|cut -d: -f1

Best Regards.
John

-----Original Message-----
From: Xiaomei Zhou [mailto:mei at prc.utexas.edu]
Sent: Wednesday, February 28, 2001 5:35 AM
To: sunhelp at sunhelp.org
Subject: [SunHELP] nisgrep user name-help!


Hello,

Does anyone know how to view UNIX members in a group in NIS+ table? I can
view all 
groups using niscat group.org_dir but if a member belongs to a primary group
(its 
default group), the name is not listed. However, the member name is listed
if he/she 
belongs to a secondary group. I used nisgrep command to view the individual
group. 
How can I view UNIX members in their primary groups? Is this due to
permission 
restriction? Please help!

Thanks in advance!
Mei




More information about the SunHELP mailing list