[SunHELP] nisgrep user name-help!

Lund, Dennis sunhelp at sunhelp.org
Wed Feb 28 07:49:04 CST 2001


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

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is
confidential, proprietary, privileged or otherwise protected by law. The
information is solely intended for the named addressee (or a person
responsible for delivering it to the addressee). If you are not the intended
recipient of this message, you are not authorized to read, print, retain,
copy or disseminate this message or any part of it. If you have received
this e-mail in error, please notify the sender immediately by return e-mail
and delete it from your computer. 



------_=_NextPart_001_01C0A18D.3668496E
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RE: [SunHELP] nisgrep user name-help!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I don't think it is a permission problem.  Don't =
know NIS+, but I think it works </FONT>
<BR><FONT SIZE=3D2>just like NIS did.  A user is not listed in the =
"primary group" because it is </FONT>
<BR><FONT SIZE=3D2>the user primary group.  It is shown in the =
password listing.</FONT>
</P>

<P><FONT SIZE=3D2>Example:</FONT>
<BR>        <FONT SIZE=3D2>Users =
primary group is 100 (user)</FONT>
<BR>        <FONT SIZE=3D2>Users =
secondary group is 200 (engr)</FONT>
</P>

<P>        <FONT SIZE=3D2>The users =
primary group is defined in the password database and does not</FONT>
<BR>        <FONT SIZE=3D2>need to =
be redefined in the group database.</FONT>
</P>

<P>        =
        <FONT =
SIZE=3D2>smith:x:1001:100:John Smith:/export/home/smith:/bin/ksh</FONT>
</P>

<P>        <FONT SIZE=3D2>The users =
secondary group is defined in the group database.  It is =
not</FONT>
<BR>        <FONT SIZE=3D2>defined =
in the password database.</FONT>
</P>

<P>        =
        <FONT =
SIZE=3D2>engr::200:smith,jones</FONT>
</P>

<P><FONT SIZE=3D2>If this is not correct, would someone please correct =
me.</FONT>
</P>

<P><FONT SIZE=3D2>Dennis L. Lund</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Li John-a16118 [<A =
HREF=3D"mailto:J.Li at motorola.com">mailto:J.Li at motorola.com</A>]</FONT>
<BR><FONT SIZE=3D2>Sent: Tuesday, February 27, 2001 9:07 PM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: RE: [SunHELP] nisgrep user =
name-help!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hello Mei,</FONT>
</P>

<P><FONT SIZE=3D2>I don't think this is due to permission restriction. =
Maybe you can list the primary group members by the following =
command:</FONT></P>

<P><FONT SIZE=3D2>%nisgrep 'gid=3D<primary groupid>' =
passwd.org_dir|cut -d: -f1</FONT>
</P>

<P><FONT SIZE=3D2>Best Regards.</FONT>
<BR><FONT SIZE=3D2>John</FONT>
</P>

<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Xiaomei Zhou [<A =
HREF=3D"mailto:mei at prc.utexas.edu">mailto:mei at prc.utexas.edu</A>]</FONT>=

<BR><FONT SIZE=3D2>Sent: Wednesday, February 28, 2001 5:35 AM</FONT>
<BR><FONT SIZE=3D2>To: sunhelp at sunhelp.org</FONT>
<BR><FONT SIZE=3D2>Subject: [SunHELP] nisgrep user name-help!</FONT>
</P>
<BR>

<P><FONT SIZE=3D2>Hello,</FONT>
</P>

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

<P><FONT SIZE=3D2>Thanks in advance!</FONT>
<BR><FONT SIZE=3D2>Mei</FONT>
</P>

<P><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT>
<BR><FONT =
SIZE=3D2>_______________________________________________</FONT>
<BR><FONT SIZE=3D2>SunHELP maillist  -  =
SunHELP at sunhelp.org</FONT>
<BR><FONT SIZE=3D2><A =
HREF=3D"http://www.sunhelp.org/mailman/listinfo/sunhelp" =
TARGET=3D"_blank">http://www.sunhelp.org/mailman/listinfo/sunhelp</A></F=
ONT>
</P>
<BR>

<P>     - - - - - - -  Appended by =
Scientific-Atlanta, Inc.  - - - - - - - =20
<BR>This e-mail and any attachments may contain information which is =
confidential, proprietary, privileged or otherwise protected by law. =
The information is solely intended for the named addressee (or a person =
responsible for delivering it to the addressee). If you are not the =
intended recipient of this message, you are not authorized to read, =
print, retain, copy or disseminate this message or any part of it. If =
you have received this e-mail in error, please notify the sender =
immediately by return e-mail and delete it from your computer. </P>
<BR>

</BODY>
</HTML>
------_=_NextPart_001_01C0A18D.3668496E--



More information about the SunHELP mailing list