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)


Question

How to use netgroups with NFS without NIS?

Answer

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:
http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.nisplus/doc/nisplus/aptbls_netgroup.htm


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

No comments:

Labels

BlogCatalog