nfs and netgroups

2007-12-25 8:51:00

Hi all,

Thanks for the great responses. You helped us solve our problem.

Original question:

> I am having problems using netgroups in my /etc/exports file.

>

> Example:

>

> netgroups table -

> diskclients (host1,,our.domain)

>

> exports table

> /usr/local -access=diskclients

>

> When I do an exportfs -a and then reboot the client (after rebuilding

> the NIS tables on the server), the client (host1) does not have

> permission to mount from the server.

>

> I can reboot the client single user, set up the network interface,

> etc, be able to use ypmatch and ypcat to see the entry for diskclients

> in the netgroup table. When I try to "mount -t nfs

> server:/usr/local", I get a permission denied message.

Solution:

        The netgroups triples were in the format (host,-,DNS.domain).

        They should have been in the format

        (host.DNS.domain,-,NIS.domain).

Some things to check (condensed):

        Include the DNS domain in the first part of the triple. This

        depends on what hostnames are resolved to.

        The DNS domain and NIS domain have nothing to do with one

        another. The first part of the triple uses the NIS domain,

        and the first part uses the DNS domain.

        Check if the client is in the hosts map for the server (?).

Thanks to the following people who responded:

        David Lee <T.D.Lee@durham.ac.uk>

        John Benjamins <johnb@blas.cis.mcmaster.ca>

        Patricia Ann Max <pam@fimad1.lanl.gov>

        Stephen Potter <spp@vx.com>

        Anchi Zhang <anchi@Starbase.NeoSoft.COM>

        Pamela Pledger <pamela@jupiter.Legato.COM>

        Ray Brownrigg <ray@isor.vuw.ac.nz>

        Michelle Goldberg <mikka@la.tis.com>

You all are great!

Brian

Brian T. Wightman wightman@sol.acs.uwosh.edu

Academic Computing wightman@oshkoshw.bitnet

University of Wisconsin, Oshkosh http://sol.acs.uwosh.edu/~wightman

Comments

Got something to say?

You must be logged in to post a comment.