
6-10 Dell PowerVault 720N, 740N, and 760N System Administrator and Command Reference Guide
([DPSOHRIHWFQHWJURXSV
The following lines show an example of a
/etc/netgroups
file:
trusted-hosts (adminhost,,)
untrusted-hosts (red,,) (blue,,) (green,,)
all-hosts trusted-hosts untrusted-hosts
([DPSOHRIHWFH[SRUWV8VLQJ1HWJURXSV
The following lines show an example of an
/etc/exports
file that uses netgroup group
names:
/vol/vol0 -access=trusted-hosts,root=adminhost
/vol/vol0/home -access=all-hosts,root=adminhost
&RS\HWFQHWJURXS:KHQ)LOHU'RHVQ·W8VH1,6
If your filer is not configured as an NIS client, the network groups on the filer are not
linked with NIS.
0XVWFRS\1,6QHWJURXSILOH
You must copy an existing NIS network group over to
/vol/vol0/etc/netgroup
on the
filer before the
exportfs
command can use it.
$XWRPDWLQJFRS\LQJZLWKD0DNHILOH
You can modify the Makefile of the NIS master to copy the NIS masters
/etc/netgroup
file to the filer when it is changed.
([DPSOH0DNHILOH
The following lines of code in the NIS Makefile section for
netgroup.time
copy the
/etc/netgroup
file to filers named filer1, filer2, and filer3; substitute the name of your
filers in the for list, in place of
filer1
,
filer2
, and
filer3
, and add any other filer names
to which you want the file copied:
@mntdir=/tmp/nac_etc_mnt_$$$$;\
if [ ! -d $$mntdir ]; then rm -f $$mntdir; mkdir $$mntdir; fi;\
for filer in
filer1 filer2 filer3
; do \
mount $$filer:/vol/vol0/etc $$mntdir;\
mv $$mntdir/netgroup $$mntdir/netgroup.bak;\
cp /etc/netgroup $$mntdir/netgroup;\
umount $$mntdir;\
done;\
rmdir $$mntdir