Operating System - HP-UX
1824485 Members
4307 Online
109671 Solutions
New Discussion юеВ

How to allow NFS root export to a netgroup

 
Alan Edwards
Frequent Advisor

How to allow NFS root export to a netgroup

I am trying to setup an NFS server running 11.23 to export root shares to a netgroup. For example root=, i.e. as Sun solaris can.

Alan
Klatu Barada Nikto
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: How to allow NFS root export to a netgroup

Shalom,

showmount -e

I'd like to see /etc/exports from the Solaris box, because quite honestly your question is not understood, at least by me.

/etc/exports controls hp-ux nfs export just like it does on every other linux. The first field is what you want to export, the second includes security information which lets you discriminate by hostname at the very least.

Also helpful:
You OS, as nfs is greatly changed on 11.31 versus say 11.11 HP-UX.

What do you mean by netgroup? Is that a group of users on your network, a group in /etc/group what?

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alan Edwards
Frequent Advisor

Re: How to allow NFS root export to a netgroup

It is an NIS group of systems that we want to allow root NFS access to. Here is an example of what we are trying to do:

/usr/local/vxbench -root=root-trusted,access=all_hosts

were root-trusted and all_hosts is a group entry in NIS. If you substitute root-trusted by colon separate host names it works. With the above entry the error is unknown root-trusted host.
Klatu Barada Nikto
Jeff_Traigle
Honored Contributor

Re: How to allow NFS root export to a netgroup

You typically need @ in front of the netgroup names in the various configuration files so I'd bet on the following syntax:

root=@netgroup_name
--
Jeff Traigle
Alan Edwards
Frequent Advisor

Re: How to allow NFS root export to a netgroup

Tried that, @root-trusted does not work either.
Klatu Barada Nikto
Peter Nikitka
Honored Contributor

Re: How to allow NFS root export to a netgroup

Hi,

at least in 11i the usage of netgroups as access-list of the root= option is NOT allowed. This is explicitly stated in the man page (compare the entries for root= and access= ):
man exports:
>>
root=hostname[:hostname]...
Give root access only to the root users from a
specified hostname.
...
access=[access_list][:access_list]...
Give mount access to each access_list listed.
<<

Check for that man page entry at your 11.23 server!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"