* Re: Why won't netgroups work
1999-02-26 5:00 Why won't netgroups work Richard Abraham
@ 1999-02-27 5:00 ` Erik Persson
0 siblings, 0 replies; 2+ messages in thread
From: Erik Persson @ 1999-02-27 5:00 UTC (permalink / raw)
"Richard Abraham" <richard.abraham@mnr.gov.on.ca> writes:
> Dear List:
>
> I am trying to implement netgroups on my system. I set them up
> according to the manual page. Reference them in my .rhosts
> files and /etc/exports according to the man page and they seem
> to have no effect.
>
> Am I missing something. If anyone knows please let me know.
>
> Thanks.
>
> Richard Abraham
Is your netgroup database in NIS? I am not sure if this is true for
Digital Unix, but on at least Solaris there is no file backend for the
netgroup service, so just having a /etc/netgroup file won't do you any
good. I haven't verified this on DU, so don't take my word for it.
Is the netgroup source file in the correct format? RTFM netgroup(4).
For a negroup tuple just mathing users and having wildcard for hosts
and NIS domains this looks like:
foousers (,luser1,) (,luser2,)
and for hosts conversely:
foohosts (host1,,) (host2,,)
To be sure, use fully qualified domain names when specifying hosts.
Does the negroup map get built when you issue a make in /var/yp on the
NIS server?
Can you read the NIS netgroup file on the systems that you would like
to use it? 'ypcat -k netgroup' or 'ypmatch <somenetgroup> netgroup'.
Is /etc/svc.conf set up properly? For netgroups over NIS it should
read:
netgroup=yp
Are the files that are referring to netgroups set up correctly:
.rhosts (should be mode 400 or 600):
+@foousers
exports:
/export/foodir -access=foohosts
Good luck,
/Erik
--
Erik Persson, System Manager e-mail: erik@ikp.liu.se
Dept. of Mech. Engineering Voice: +46 13 28 2464
University of Link�ping, Sweden Fax: +46 13 28 2717
^ permalink raw reply [flat|nested] 2+ messages in thread