Your Ad Here

IBM AIX/UNIX system storage administration ksh/perl scripting

Tuesday, March 16, 2010

How to use netgroups with NFS without NIS

Technote (FAQ)


How to use netgroups with NFS without NIS?


1. Create /etc/netgroup file on NFS server

Here's an example of a netgroup file that contains a group called "group1", which consists of three hosts:

# cat /etc/netgroup

group1 (tcplabbso,,) (bonesbso,,) (srcmstrbso,,)

For more specific information about the syntax of a netgroup file, please see the man page below:

2. Modify /etc/exports file (or use smitty) to specify access for netgroup, i.e.:

# cat /etc/exports

/tmp -sec=sys:krb5p:krb5i:krb5:dh,access=group1

3. Unexport and re-export

# exportfs -ua

# exportfs -av

4. Test