Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

NFS: How to share without root access option?

dictum9
Super Advisor

NFS: How to share without root access option?

The os is 11.31 on both client/server.

 

Working configuration of /etc/dfs/dfstab

 

share -F nfs -o anon=-1,root=host,rw=host  /dir

 

New, and not-working configuration:


share -F nfs -o anon=-1,rw=host /dir

 

I have to remove "root=" statement which breaks the NFS and results in this error:

 

FS access failed for server sidsit2d: error 7 (RPC: Authentication error)

 

How do I get around it?

 

 

 

4 REPLIES
Dave Olker
HPE Pro

Re: NFS: How to share without root access option?

What exactly are you trying to accomplish?  Do you want applications or processes running as root on the NFS client to be able to access files/directories on the NFS server with root permissions?  If so, then root= is the way to do it.  If that's what you need, why are you removing the root= entry from your share syntax?

 

Are non-root users and processes on client "host" able to access the NFS filesystem, traverse directories, read and write data, etc?

 

Dave

S_Logan
HPE Pro

Re: NFS: How to share without root access option?

Hi 

 

According to th error message: Error 7 (RPC: Authentication error),

 

Please refer the following Previous posts: 

 

http://h30499.www3.hp.com/t5/Networking/NFS-problem-RPC-Authentication-error/td-p/4414355#.VUAg4SGqqko

 

http://h30499.www3.hp.com/t5/Serviceguard/NFS-access-failed-for-server-xxx-error-7-RPC-Authentication/td-p/5267297#.VUAg3SGqqko

 

I work for HPE

If you feel this solution was helpful please click the KUDOS! thumb below!
dictum9
Super Advisor

Re: NFS: How to share without root access option?

http://h30499.www3.hp.com/t5/Networking/NFS-proble​m-RPC-Authentication-error/td-p/4414355#.VUAg4SGqq​...

 

The first one I started and it's not applicable to this, as there was a firewall issue.

 

 

http://h30499.www3.hp.com/t5/Serviceguard/NFS-acce​ss-failed-for-server-xxx-error-7-RPC-Authenticatio​...

 

This is  one is useless as well, no details as to what has been done. What is the proper config of these files?

 

 

They updated the below entry
/etc/auto_master
/etc/auto.direct
hanfs.db
start and stop the /sbin/init.d/autofs

Dave Olker
HPE Pro

Re: NFS: How to share without root access option?

I doubt either of those posts is related to your situation.  Just because you get the same RPC error number, that doesn't mean the underlying cause is the same.  The 2nd thread was related to AutoFS, which you don't appear to be using.

 

I return you to my original post:

 

What exactly are you trying to accomplish?  Do you want applications or processes running as root on the NFS client to be able to access files/directories on the NFS server with root permissions?  If so, then root= is the way to do it.  If that's what you need, why are you removing the root= entry from your share syntax?

 

Are non-root users and processes on client "host" able to access the NFS filesystem, traverse directories, read and write data, etc?