1847466 Members
3285 Online
110265 Solutions
New Discussion

Re: NFS export issue

 
SOLVED
Go to solution
dictum9
Super Advisor

NFS export issue

The NFS server is a Solaris 9 box, the client is HP-UX 11.23.

I am trying to export a filesystem.

I have no issues when I export to the whole world, but when I try to export to a single (hp-ux) host, I get this:



NFS getattr failed for server box1: RPC: Authentication error


7 REPLIES 7
Michael Steele_2
Honored Contributor
Solution

Re: NFS export issue

Hi Etcetera:

a) Make sure your /etc/passwd and /etc/groups are in sync between solaris and hp-ux. All matching gids and uids.

b) Check uids and gids on nfs filesystem for same.

c) See this link:

http://www.bjnet.edu.cn/sun-admin/FAQ/F-comp-sys-sun/Q13-0.html
Support Fatherhood - Stop Family Law
Jeeshan
Honored Contributor

Re: NFS export issue

did u set .rhosts in your root directory?

add a line of your solaris server ip and user like

root
a warrior never quits
Peter Nikitka
Honored Contributor

Re: NFS export issue

Hi,

@ashan: .rhosts has nothing to do with the exporting of file systems

Check on your Solaris9 box, which name corresponds to the ip-address of your HP - or has your HP more than one address?
- check the name/IP your HP is entered in the host resolution (file, NIS, DNS?)
- do a login from the HP to the sun and send the output of 'who am i'
- please give us the complete syntax of your share command on the sun
- send the output of 'showmount -e , executed at your HP

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"
dictum9
Super Advisor

Re: NFS export issue


cat /etc/dfs/dfstab

# this line works:

share -F nfs -o rw -d "Report Generator" /disk2/optportal

# This line does not work, results in error

#share -F nfs -o rw=client1 -d "Report Generator" /disk2/optportal



NFS getattr failed for server box1: RPC: Authentication error


client1#: showmount -e box1
export list for box1
/disk2/optportal


Peter Nikitka
Honored Contributor

Re: NFS export issue

Hi,

so 'box1' doesn't know how to handle the name 'client1'.

Look at the 'access_list' part of the SUN-manpage at
http://docs.sun.com/app/docs/doc/817-3937/6mjgeag48?l=de&a=view&q=share+NFS+Solaris9

how the mode of name resolution configured in /etc/nsswitch.conf takes influence to hostnames entered.

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"
dictum9
Super Advisor

Re: NFS export issue

The correct syntax is:


share -F nfs -o rw,root=client1:client2 -d "Report Generator" /disk2/optportal

Dave Olker
Neighborhood Moderator

Re: NFS export issue

Are you trying to restrict *access* to the filesystem to a specific client or *root access* to the filesystem?


> share -F nfs -o rw,root=client1:client2 -d "Report Generator" /disk2/optportal


This syntax will allow *all* NFS clients read/write access to the /disk2/optportal filesystem but will only allow root users on client1 and client2 to access files as uid/gid=0 on the server. Is that what you're really after?

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo