1836214 Members
2146 Online
110096 Solutions
New Discussion

Re: question about nfs

 
itai weisman
Super Advisor

question about nfs

i noticed that after mounting a nfs exported directory on another node, files will be created on the mounted directory with ownership of "nobody" .
can I change it somehow??
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: question about nfs

You would probably have to change the /etc/exports file on the server doing the export.

What changes you need depend on what authentication methodology you are using.

NIS? LDAP?

After making the changes:

exportfs -av

This will provide verbose output so you can see your changes worked.

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
itai weisman
Super Advisor

Re: question about nfs

i'm using NIS.
but the users i'm using to create files with are the local users (/etc/passwd) with same id's (uid and gid) as in the nfs server.
what should i change in the exports file?
Steven E. Protter
Exalted Contributor

Re: question about nfs

If security concerns permit it, please post your /etc/exports file and I will make change recommendations.

There is a factor here I don't quite understand. I have looked at a few NFS servers and do not see this behavior among them.

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
itai weisman
Super Advisor

Re: question about nfs

here it is, attach both exports and nfsconf file.
the host file system is hpux 11.11
Itai
SGUX
Valued Contributor

Re: question about nfs

I guess you should check the user-ID's one more time. Looks like the user_ID's are not similar and the option for unknown user-ID's is set to "Use UID of User 'nobody'(default)"
Change this option to "Disable" or "Specify" to see what happens.
[ these are the options in SAM ]
Muthukumar_5
Honored Contributor

Re: question about nfs

Change the setting of,

/var/opt/ignite/clients -anon=2

to

/var/opt/ignite/clients

Try to re-export all fs. Try it now.

hth.
Easy to suggest when don't know about the problem!
itai weisman
Super Advisor

Re: question about nfs

i managed to solve it by simply add -root flag....
thanks everyone