Operating System - HP-UX
1825759 Members
2212 Online
109687 Solutions
New Discussion

Re: Wrong owner displayed on imported NFS drive files.

 
Dave Walley
Frequent Advisor

Wrong owner displayed on imported NFS drive files.

Hi.

I have a remote file system mounted as read only on my server, the files all appear as being owned by the user on my server whose uid string matches the real owner on the donor machine. Is there any way that I can change the settings so the correct owner appears on my system.

Thanking you.

Dave
why do i do this to myself
6 REPLIES 6
Eileen Millen
Trusted Contributor

Re: Wrong owner displayed on imported NFS drive files.

It looks like you will have to change one of the UIDs.
Rick Garland
Honored Contributor

Re: Wrong owner displayed on imported NFS drive files.

Change a UID.
Alan Riggs
Honored Contributor

Re: Wrong owner displayed on imported NFS drive files.

UID's must match across system for the ownership flag to be accurate on an NFS mounted filesystem.
Bill Hassell
Honored Contributor

Re: Wrong owner displayed on imported NFS drive files.

The owner (and group) name shown by commands like ls -l are conveniences to humans--files are owned by numbers, userID and groupID. To make those numbers more human-like, they are connected to login and group names found in the passwd and group files respectively.

So NFS brings in a foreign filesystem with file ID's created by users on another system. Unless there is a match between the two password files, the displayed username and/or groupname will not make much sense.


Bill Hassell, sysadmin
James R. Ferguson
Acclaimed Contributor

Re: Wrong owner displayed on imported NFS drive files.

Dave:

In MC/ServiceGuard environments too, you will want to maintain the same UID to username relationships.

...JRF...
Ade Jinadu
Occasional Advisor

Re: Wrong owner displayed on imported NFS drive files.

Hi,

You'll have to change one of the UID's because in the NFS and system environment it's the UID's and GID's that count.

Regards,

Ade
Run Unix