Operating System - HP-UX
1828634 Members
7187 Online
109983 Solutions
New Discussion

NFS file ownership ids are different.

 
Gulam Mohiuddin
Regular Advisor

NFS file ownership ids are different.

I used NFS to export files between two HP-UX 11i Servers.

The file owner and group id is Ora9i:dba on the NFS Server:
-rwxrwxrwx 1 ora9i dba 1703936 Feb 22 17:21 aqprod_ctl

But mounting on NFS client both owner and group ids are totally different:
-rwxrwxrwx 1 tkdev psoft 1703936 Feb 22 17:21 aqprod_ctl

How to match it with ora9i:dba ids as they exists on both the servers?

I have exported and mounted file system with the root user account.

Thanks.

Gulam.
Everyday Learning.
7 REPLIES 7
Jeff_Traigle
Honored Contributor

Re: NFS file ownership ids are different.

The user and group ownership is based on UID and GID. The names displayed a human convenience. You obviously have user tkdev and group psoft on the NFS client system assigned the respective UID and GID for ora9i and dba on the NFS server system. You need to change the UID and GID so they match on both systems.
--
Jeff Traigle
Arunvijai_4
Honored Contributor

Re: NFS file ownership ids are different.

Hi Gulam,

Check uid of ora9i in your client. NFS takes uid and gid for getting usernames and groupnames,

#id ora9i in server end

# id tkdev

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
A. Clay Stephenson
Acclaimed Contributor

Re: NFS file ownership ids are different.

This is one of the reasons that NIS, NIS+, or LDAP is typically used to manage users and groups on related UNIX boxes. It provides a means of centrally managing UID's and GID's (as well as much more). In an ideal world, you would have matched UID's and GID's across all the systems. IN your case, when you try to unify the UID's and GID's, you are actually going to have to change file/group ownerships on at least one of your systems. This is a case where planning on the front end pays great dividends.
If it ain't broke, I can fix that.
Andrew Moody_1
Regular Advisor

Re: NFS file ownership ids are different.

Can I ask as and extension to Gulam's question, how many machines would you have, before you invested time in setting up NIS or LDAP?

Thanks
A sobering thought: What if, right at this very moment, I am living up to my full potential?
Andrew Moody_1
Regular Advisor

Re: NFS file ownership ids are different.


Just a thought, Gulam, as the directory you've exported has rwx permissions set for everyone, does it matter than the UID/GID don't match?
A sobering thought: What if, right at this very moment, I am living up to my full potential?
Gulam Mohiuddin
Regular Advisor

Re: NFS file ownership ids are different.

My application was not able to access/read those files so I manually changed exported file permissions to rwx.

Thanks,

Gulam.
Everyday Learning.
Senthil Kumar .A_1
Honored Contributor

Re: NFS file ownership ids are different.

Hi Gulam,

There is another thread with the same problem.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1004642

Try changing the UID and GID in NFS client system so that it matches the UID and GID in NFS server for user Ora9i and group dba. You can see some suggestions in the above thread. But I would advice you to wait for more responses from already experienced guys.

Meanwhile I will dig up some related topics in ITRC for you.

Regards,
Senthil
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)