Editing Netgroup

From CS Support Wiki
Jump to: navigation, search

When editing the /etc/netgroup file used by our Unix Servers for NFS authentication, there are a few important items to remember:

1. Do not use spaces for whitespace - use tabs. 2. Do not append a trailing ignore-newline-slash "\" at the end of the last element in the sub-netgroup.

For some reason, these can occasionally result in bad netgroup maps - missing some hosts - which can break NFS for various clients in unexpected ways. When you finish editing the netgroup, be sure to validate that the hosts you expect to see do in fact show up on the fileserver, using ypmatch:

jpr9c@adder

/af13/jpr9c ; ypmatch cs_public netgroup

(clove.cs.Virginia.EDU,,) (arachnion.cs.Virginia.EDU,,) (mothra.cs.Virginia.EDU,,)