1837770 Members
4534 Online
110119 Solutions
New Discussion

nfs access fails

 
SOLVED
Go to solution
Oliver Schmitz
Regular Advisor

nfs access fails

Dear all,

I try to export some directories from an HP-UX 11 system to an HP-UX 10.20 system.
First I did it by editing the /etc/exports file correspondent to the man of it and exportfs.
I did not succeed: The remote computer can mount this directori4es as intended but I am not able to get a write permission. Only if I replace -access=hostname by -root=hostname I can write on the remotes host FS. Following the man page and the help desk it must be possible to export via nfs in this way that I can write as anonymous user at leat or even as the user I am at the mounting system.
I tried it aswell using SAM (to export) with the same result.

Are there patches needed for this purposes? Are there any serious problems known between 11 and 10.20 in this area?

Thanks for some helpfull answers and best regards,

Oliver
Oliver Schmitz
1 REPLY 1
Cesare Salvioni
Trusted Contributor
Solution

Re: nfs access fails

When u NFS mount a filesystem the access on the server is done with the same UID used on the client, so this UID must have the right access on the server to write/read/execute files.
This is true for all username but root
Default is to avoid root on NFS client to be root on NFS mounted file systems.
It means that, by default, UID 0 (root) is changed on the server to the anonymous UID (default -2)
U can change this behaviour in different way, with different options during the export command.
-anon= change the mapped UID for root client
-root=, allow root from listed host to remain root (UID 0 is not mapped for listed host)
for instance the line
/tmp -anon=0
allow mounting read/write from any host and doesn't map UID 0 to anon for any map: root on every NFS client mantains superuser on the mounted filesystem

Hope this explain ur doubts
Cesare