Operating System - HP-UX
1777014 Members
1915 Online
109062 Solutions
New Discussion юеВ

How to keep same owner for nfs mount points (in other server)?

 
Deepu Chakravarty
Regular Advisor

How to keep same owner for nfs mount points (in other server)?

I have three file systems in the server (A). I have mounted these three file systems in another server (B). When I see the directories/files in these files systems in server B, I am not getting the same owner of the directories/files as in server A.
I must keep the same owner of server A in the mounted file systems in server B.
How to achive this? Pls advice.
Thanks in advance.
6 REPLIES 6
Victor Fridyev
Honored Contributor

Re: How to keep same owner for nfs mount points (in other server)?

Hi,

Ownership from Network file server is transfered to NFS clients automatically. You can see a difference in ownership if users on server and clients are built independently. Compare users' IDs on server and clients.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Deepu Chakravarty
Regular Advisor

Re: How to keep same owner for nfs mount points (in other server)?

Hi,

Not clear. Do you mean the userid I am getting in server B is same as in server A?
But how to get the same username?
Peter Godron
Honored Contributor

Re: How to keep same owner for nfs mount points (in other server)?

Hi,
is user A on server A has idnumber 34,
but on server B the idnumber 34 is used for user B, then the files on an export from server A appear to belong to user B.

To clarify:
If the idnumber are different, the owner will be different. Either use NIS or use consistent ids across machines.
Steven E. Protter
Exalted Contributor

Re: How to keep same owner for nfs mount points (in other server)?

Shalom Deepu,

There needs to be a mechanism whereby the user id on the client is also the user id (numeric) on the server.

Few possibilties:
1) Set up NIS services and make sure client and server are both part of the NIS domain. This will solve the issue.
2) NIS+ A bad idea because HP is dropping support for it in new OS.
3) LDAP Integration.
4) ADS Windows Integration.

All of the above ideas make the user mysuer the same on all servers, client and server, which will resolve this 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
Deepu Chakravarty
Regular Advisor

Re: How to keep same owner for nfs mount points (in other server)?

Thanks Guys,

I have modified the username I require in server B. Now I got the correct username as in server A.
Bill Hassell
Honored Contributor

Re: How to keep same owner for nfs mount points (in other server)?

All files and directories in HP-UX have two numbers, one for owner and one for group. These are never changed in NFS so you are indeed seeing the correct number but with the ll command, you will see these numbers translated to names form the passwd and group file. So it looks like a different owner is attached to these files. So as you have done, changing user logins to match between systems will ensure that the ownership (by name) will match.


Bill Hassell, sysadmin