Do you have NIS for netgroup lookup in your /etc/nsswitch.conf file?
The group information ( not netgroup) can be obtained using the command ypgroup.
-Devi
-----Original Message----- From: Timothy Demarest [mailto:demarest@arraycomm.com] Sent: Tuesday, March 28, 2000 9:30 AM To: Bond, Andrew Cc: toasters@mathworks.com Subject: Re: NIS and netgroup file
"Andrew" == Bond, Andrew abond@netapp.com wrote the following on Tue, 28 Mar 2000 00:53:07 -0800
Andrew> The filer does not copy the NIS maps into /etc. NIS group Andrew> information is cached, but otherwise the filer acts as a NIS Andrew> client only, and will query the NIS server it has bound to ("nis Andrew> info" will tell you which this is).
Andrew:
Thanks for the info. I can't seem to get the Filer to lookup netgroup information via NIS. If I manually place a system's name in the exports file, the system can then mount the volume. If I use an NIS netgroup name for which the system is a member, I cannot mount the volume.
Is there a way to see what NIS information the Filer thinks it has cached?
Tim
"Devi" == Nagaraj, Devi devi.nagaraj@netapp.com wrote the following on Tue, 28 Mar 2000 09:42:56 -0800
Devi> Do you have NIS for netgroup lookup in your /etc/nsswitch.conf Devi> file?
Yes:
array 32# more nsswitch.conf #Auto-generated by NIS Fri Jan 28 03:04:38 PST 2000 hosts: files dns nis passwd: files nis netgroup: nis files group: nis files shadow: files nis
array 33# more exports #Auto-generated by setup Fri Jan 28 11:04:38 GMT 2000 /vol/vol0 -access=array:clem,root=array:clem /vol/vol0/home -access=unix,root=array:clem /vol/vol0/homes -access=unix,root=array:clem /vol/vol01/p -access=unix,root=array:clem /vol/vol02/acom -access=unix,root=array:clem /vol/vol02/hw -access=unix,root=array:clem /vol/vol02/q -access=unix,root=array:clem /vol/vol02/cad -access=unix:blanche,root=array:clem
In the last line, you can see "blanche", which is a member of "unix". If blanche is left in the line, it can mount /vol/vol02/cad. If I remove blanche and just leave "unix", the Filer should do an NIS lookup, find blanche in "unix", and perform the mount. No?
Devi> The group information ( not netgroup) can be obtained using the Devi> command ypgroup.
That works just fine.
Tim
You can do a ypcat netgroup. Do rc_toggle_basic to enter advanced mode, then ypcat -k netgroup Be sure to rc_toggle_basic off after you check.
Thanks for the info. I can't seem to get the Filer to lookup netgroup information via NIS. If I manually place a system's name in the exports file, the system can then mount the volume. If I use an NIS netgroup name for which the system is a member, I cannot mount the volume.
Is there a way to see what NIS information the Filer thinks it has cached?
Tim