1835542 Members
2773 Online
110078 Solutions
New Discussion

NFS permission issue

 
gurudatta_1
Advisor

NFS permission issue

Hi All,


I am using the 1131 HP-UX system where I am having 50 GB space I have done nfs share through the /etc/dfs/dfstab for a particular system with read and write permission.

share -F nfs -o rw=Test1.test.com -d "nestle data" /data

and started the nfs server in the system while accessing from the client system I am unable to write any file in to the /data which is shared.

I am getting the error Permission denied in the server

Test1# touch test
touch: test cannot create

Regards
Gurudatta N.R
11 REPLIES 11
Jeeshan
Honored Contributor

Re: NFS permission issue

is it /etd/dfs/dfstab or /etc/exports file?

anyway, check the .rhosts and /etc/hosts file

and also /etc/xtab
a warrior never quits
gurudatta_1
Advisor

Re: NFS permission issue

Hi ,

it is /etc/dfs/dfstab in hpux 11.31 iam having valid hostname in /etc/hosts i have put the ip and root account in the .rhosts and tried .

Regards
Gurduatta N.R
Ramesh S
Esteemed Contributor

Re: NFS permission issue

Hi

Are you be able to ping Test1.test.com (hostname) from NFS server.

Was there any issue while mounting also or only writing>

Are you using AUTOFS or manually mounting at client side?

Check the file /etc/dfs/sharetab in NFS server.

Best Regards
Ramesh S
d_bachelor01
Frequent Advisor

Re: NFS permission issue

Hi,

Can you run "share " on your server then test it again if you are still having the permission denied error?

Regards,
-jef
gurudatta_1
Advisor

Re: NFS permission issue

Hi Ramesh,

while i am mounting iam not getting any issue it will mount mannuly and with autofs also.

while writing iam getting the problem

my current /etc/dfs/sharetab file

/data - nfs rw=/data - nfs rw=dsau23.ind.hp.com,ro= nestle data,ro=
gurudatta_1
Advisor

Re: NFS permission issue

Hi Ramesh,

while i am mounting iam not getting any issue it will mount mannuly and with autofs also.

while writing iam getting the problem

my current /etc/dfs/sharetab file

/data - nfs rw=/data - nfs rw=test1.test.com,ro= nestle data,ro=
Dave Olker
Neighborhood Moderator

Re: NFS permission issue

Who is the user trying to create files in the NFS mount? Is this the root user? You haven't shared the filesystem to allow root users, so their UID/GID will get re-mapped to -2 and unless your shared directory permissions are wide open you won't be able to create files as the root user.

Can non-root users create files in the mounted filesystem?

Regards,

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
gurudatta_1
Advisor

Re: NFS permission issue

Hi Dave Olker,

I am able to do it now thanks for Help.

share -F nfs -o anon=0=test1.test.com -d "nestle data" /data

Regards
Guruadatta N.R
Dave Olker
Neighborhood Moderator

Re: NFS permission issue

Hi,

> share -F nfs -o anon=0=test1.test.com -d "nestle data" /data

This syntax allows the root user from every client to access this system as root. Is that really what you want? If all you want to do is allow system "test1.test.com" read/write access the filesystem and allow the root user on "test1.test.com" to access files as uid=0 then the syntax would be:

share -F nfs -o rw=test1.test.com,root=test1.test.com /data

That's a much more secure way of sharing the filesystem.

Regards,

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
gurudatta_1
Advisor

Re: NFS permission issue

Hi Dave,

I have tried the option which is updated by you

share -F nfs -o rw=test1.test.com,root=test1.test.com /data

in this option i am getting the error

test1# touch gurudatta
touch: gurudatta cannot create

Regards
Gurudatta N.R
Dave Olker
Neighborhood Moderator

Re: NFS permission issue

> share -F nfs -o rw=test1.test.com,root=test1.test.com /data

If this syntax doesn't work then it tells me you have a hostname resolution problem in your site. When you specify a root= or rw= list and specify names of clients, the server needs to be able to resolve that hostname back to the correct IP address in order to grant access. It sounds to me like your NFS server is resolving "test1.test.com" to a different IP address than the client is actually using.

Regards,

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