Operating System - HP-UX
1752782 Members
6400 Online
108789 Solutions
New Discussion юеВ

Re: NFS Permission Denied Error

 
Ganesh Balraman
Regular Advisor

NFS Permission Denied Error

Hi All,

I am running Hpux 11.11 with latest bundle loaded.

I had configured the nfs server to export the file system called /image .

I am running as root user. When it try to mount it mount 10.0.0.22:/image /test .

It is getting mounted .

But when i try to create a file it gives permission denied error.

Filesystem was give full permisssion.
OPtins tried are:
1.ran exportfs -av
2.restarted daemons
3.rebooted server

Still erroe.

Looking for advice.

Regds
Ganesh
8 REPLIES 8
F Verschuren
Esteemed Contributor

Re: NFS Permission Denied Error

just a guess.

Can you write a file as a normal user? you can turn of the accesof root....

ps if you post your /etc/exports

ore the output of exportfs?
Prasanth Vattoly
Frequent Advisor

Re: NFS Permission Denied Error

Check the permission given in /etc/exports


EXAMPLES
/usr/games cocoa fudge # export to only these machines
/usr -access=clients # export to my clients
/usr/local # export to the world
/usr2 -access=bison:deer:pup # export to only these machines
/var/adm -root=bison:deer # give root access only to these
/usr/new -anon=0 # give all machines root access
/usr/temp -rw=ram:alligator # export read-write only to these
/usr/bin -ro # export read-only to everyone
/usr/stuff -access=bear,anon=-2,ro # several options on one line
/usr/subnet -access=@mysubnet #use mysubent in /etc/networks
/usr/subnet1 -access=@192.5 #clients must be in the 192.5.0.0 subnet
/usr/domain -access=.myd.myc.com #clients must be in .myd.myc.com
/usr/restrict -access=-host1.myd.myc.com:sales # disallow -host1 in the sales netgroup.



Prasnth
prasanth.v.a
Joelmel Roche
Valued Contributor

Re: NFS Permission Denied Error

hi,

try check this patch on your server.
PHNE_35871 - 700_800 11.11 ONC/NFS General Release/Performance Patch
Ganesh Balraman
Regular Advisor

Re: NFS Permission Denied Error

HI ,

my exports has only one entry

/image

Thats all. export to everyone.

Regds
Ganesh
Peter Nikitka
Honored Contributor

Re: NFS Permission Denied Error

Hi,

in general 'root' is mapped to a user 'unknown' when doing an access to a NFS mounted file system. See 'man exports', if you really want to permit a remote root access:
/file/system root=host1,...

The UID of a 'normal' username is left unchanged (not the name, but the uid).

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Marcin O.
Frequent Advisor

Re: NFS Permission Denied Error

Hello

In nfs exports it's a good practice to synchronize uid and gids client and server, then when you export something you don't have problem with permissions.

Thanks
Marcin
Steven E. Protter
Exalted Contributor

Re: NFS Permission Denied Error

Shalom,

On the server.

Shut down NFS

/sbin/init.d/nfs.server stop

ll -d /image/

Make sure the permissions on the folder itself permit user access.

/sbin/init.d/nfs.server start

I think this is nothing more than a simple permissions issue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesh Balraman
Regular Advisor

Re: NFS Permission Denied Error

Some issues in the export file.
Deleted all the contents.

Restarted
Service

Works fine.

Redgds
Ganesh