Operating System - HP-UX
1827402 Members
5279 Online
109965 Solutions
New Discussion

Re: Problems with NFS mount: access denied

 
Matthew Crouse
Advisor

Problems with NFS mount: access denied

 
7 REPLIES 7
John Bolene
Honored Contributor

Re: Problems with NFS mount: access denied

The only reason I know for this is permissions.

Check the permissions on the mounted directory and the files themselves.

Most NFS mounted files are 777 unless you want them read only.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Steve Labar
Valued Contributor

Re: Problems with NFS mount: access denied

Check your /etc/exports file and verify the path you are expecting is listed with the permissions you want. Any time you make changes to /etc/exports your must do an exportfs command before they will take effect.
Matthew Crouse
Advisor

Re: Problems with NFS mount: access denied

Well, none of my posts on this thread have actually made it to the forum. We'll see if this one does.

I have verified (using showmount -e) that the nfs server is running properly and that the filesystems that are exported are the same ones that I am trying to mount. I have also verified that the filesystem is chmod 777. /etc/exports contains one line that reads "/users/hpnp/ - ro,access=hpbld102" (hpbld102 is the client machine I am trying the mount from), and I have done exportfs -a many times. Any other ideas/suggestions?
Matthew Crouse
Advisor

Re: Problems with NFS mount: access denied

Thanks Sanjay. While neither of those links provided a silver bullet fix to the problem, the second one did give me the idea to try manually exporting the fs with varying options. I found that, interestingly enough, manually exporting it with -o "ro, access=hpbld102" worked, but if I had those options in /etc/exports and ran exportfs -a it wouldn't work. That doesn't make sense to me, but at the very least I found a fix (removing the options from /etc/exports so it just reads '/users/hpnp -') that will allow me to move on, and experiment with what the cause was at my leisure.
Sanjay_6
Honored Contributor

Re: Problems with NFS mount: access denied

Hi Matthew,

Thanks for posting your reply after trying. Have you tried exporting the filesystem using sam. you can select the various options about exporting over there. If nothing resticts, i prefer using sam, so that i don't miss out on the correct format of options and you know what not. Do try exporting the filesystem using sam and let it update /etc/exportfs.

Hope this helps.

Regds
Krishna Prasad
Trusted Contributor

Re: Problems with NFS mount: access denied

See if it is exported in /etc/exports

Is the NFS Services running ...check in /etc/rc.config.d/nfsconf and make sure they are started up automatically.

Also does the directory that you want to mount on exists? If so check the permissions on it.
Positive Results requires Positive Thinking