1826639 Members
3078 Online
109695 Solutions
New Discussion

Re: Nfs Permission Pbm.

 

Nfs Permission Pbm.

Hi all,

I want to export a directory from hostA server :
on hostA
# cat /etc/exports
/test access=hostB,ro

When trying to mount on hostB permission denied is displayed. however on hostA when I put in /etc/exports this line :
/test ro
then on hostB, I can mount it without problems !

Can u advise please ?

Sofiane.

12 REPLIES 12
RAC_1
Honored Contributor

Re: Nfs Permission Pbm.

From hostB, if you do showmount -e hostA, what does it show? Does it show that share is allowed to be mounted from hostB?
There is no substitute to HARDWORK
Michael Steele_2
Honored Contributor

Re: Nfs Permission Pbm.

/test -access=hostB,ro,root=hostB

esportfs -av (* re-export *)
exportfs -v (* list exported *0
exportfs -uav (* unexport *)

##############################

verify you DNS with nslookup and /etc/hosts. Use fully Qualified domain name in /etc/hosts.

If you substitute the IP address for the host name then you're not resolving the host name.

check nsswitch.conf for correct hostname resolution.
##########################
check your nfs

rpcinfo -p ( master/client ) (* verify rpcbind, status, nfs, mountd, nlockmgr, llockmgr *)
Support Fatherhood - Stop Family Law

Re: Nfs Permission Pbm.

You show;
/test access=hostB,ro

Is that a typo? Should be;
/test -access=hostB,ro

access is an option switch, but you show no - in front of it.

Re: Nfs Permission Pbm.

thx for your help but still not working.

I check all the configuration files and all daemons and it's ok. I also change the hostname by it's Ip @ and still not working !

Re: Nfs Permission Pbm.

As others have eluded to, this sounds like a name / resolution issue.

With no hostname specified in the exports file, its a blanket allowance for any host to mount it.

Not to be insulting, but I assume hostA and hostB can ping each other fine using those names?

There are no alias issues in /etc/hosts?

Does /etc/xtab show /test as being exported properly i.e. /etc/xtab resolves symbolic link? (if /test is one).

Re: Nfs Permission Pbm.

hostA and hostB ping together so I don't think it's host/name resolution issue !

thx,

Mustafa Gulercan
Respected Contributor

Re: Nfs Permission Pbm.

i had the same problem.
try to just write /test on /etc/exports

Re: Nfs Permission Pbm.


When I just write /test on /etc/exports it can be mounted , my problem is the option -access ?

Re: Nfs Permission Pbm.

Try changing the line in /etc/exports to:

/test -ro=hostB

And execute exportfs -a to refresh.

Hope this helps,
Glen

Re: Nfs Permission Pbm.


exportfs error: unknown option: ro=hostB

Re: Nfs Permission Pbm.

What version of HP-UX are you running?

/test -access=hostB,ro

Works fine for me on 11i v1
Are the following processes running?
biod
nfsd
rpcbind
rpcd
lockd
statd
mountd

What command are you using to try to mount the remote directory?
Michael Steele_2
Honored Contributor

Re: Nfs Permission Pbm.

What's your version of O/S and what's your patching situation. I've arranged the HP-UX versions starting with 11.00.

11.00 Cumulative STREAMS Patch (PHNE_28525)
11.00 NFS nfsd deadlock,NFS SIGINT bad text region (PHKL_25237)
11.00 ONC/NFS General Release/Performance Patch (PHNE_31096)
11.00 PM/VM/UFS/async/scsi/io/DMAPI/JFS/perf patch (PHKL_18543)
11.00 Probe,IDDS,PM,VM,PA-8700,AIO,T600,FS,PDC,CLK (PHKL_34341)
11.00 VxFS 3.3 Fix DMAPI memory leak & NFS hang (PHKL_24082)

HP-UX 11.04

11.04 (VVOS) Cumulative STREAMS Patch (PHNE_29525)
11.04 (VVOS) ONC/NFS General Release/Perf Patch (PHNE_30808)
11.04 (VVOS) PM,PA-8700,AIO,T600,FS,PDC,CLK (PHKL_29760)
11.04 (VVOS) PM/VM/UFS/async/scsi/io/JFS/perf (PHKL_19142)

HP-UX 11.11

11.11 cumulative ARPA Transport patch (PHNE_34135)
11.11 Cumulative STREAMS Patch (PHNE_33729)
11.11 NFS nfsd deadlock (PHKL_25238)
11.11 ONC/NFS General Release/Performance Patch (PHNE_34293)
11.11 Tunable;vxportal;vx_maxlink;DMAPI NFS hang (PHKL_28185)

HP-UX 11.23

11.23 Kernel RPC cumulative patch (PHNE_33981)
11.23 Sept04 base patch (PHKL_31500)
Support Fatherhood - Stop Family Law