1830241 Members
5014 Online
109999 Solutions
New Discussion

netgroup file

 
ricky_8
Frequent Advisor

netgroup file

Hi ALL,

My netgroup file definitions dont work in /etc/exports.
/etc/netgroup has following line ...

---------------------------------------
abc (xyz01,,) (xyz02,,) (xyz03,,)

---------------------------------------

When i use it in /etc/exports as follows

---------------------------------------
/tmp -rw=atpsvr01 abc
---------------------------------------

i can see it being exported as

---------------------------------------
/tmp -rw=atpsvr01,access=abc
---------------------------------------

but i cannot mount the filesystem on any of the hosts under abc netgroup.i get permission
denied error. So i think this is because netgroup is not actually recognised.

Any clue what might be missing.

Thanxs ,






4 REPLIES 4
Con O'Kelly
Honored Contributor

Re: netgroup file

Hi Ricky

Your /etc/netgroup seems to be OK, though maybe you need coma's between the definitions?
EG
abc (xyz01,,), (xyz02,,), (xyz03,,)

Try setting up /etc/exports as follows:
/tmp -access=abc:atpsvr01,rw=atpsvr01
Then:
# exportfs -av

If that doesn't work can you just add all 3 hosts defined in the abc netgroup to the access list? (ie don't use /etc/netgroup)

Cheers
Con



T G Manikandan
Honored Contributor
Brian Hackley
Honored Contributor

Re: netgroup file

Ricky,

It is possible that you have usage errors.

The access= list can include both hosts and netgroups and other options listed in the exports man page.

The rw= list and ro= can ONLY include hostname.

There is confusing verbage in the man page about fully qualified hostnames and DNS; limited testing showed that "short" or "long" hostnames seemed to work equally well.

Also, a netgroup entry does not require commas between the "triples" per the netgroup man page.

I hope I haven't muddied the water too much futher. I'll put myself on the list for notification of updates to this message in case the issue lingers.

Best of luck,

-> Brian Hackley
Ask me about telecommuting!
ricky_8
Frequent Advisor

Re: netgroup file

Brain/All,

I checked with HP about this drawback about not able to use netgroup in rw and ro options and they have come back saying it is developed by sun and is very unlikely that this feature would be added.

Hence i have worked around on this ... to get my things done.and assume this issue is closed ,thanxs for putting your thoughts in.