Operating System - HP-UX
1833503 Members
2743 Online
110058 Solutions
New Discussion

nfs mount changes the owner to root

 
Ravi_8
Honored Contributor

nfs mount changes the owner to root

Hi, all

we have a Linux machine running RH 6.0. it has files under a filesystem /export owned by user 'java' and group 'test'. This filesyetm has been exported with rw permission.
In another Linux machine mounting this filesystem (using NFS)doesn't cause any owner change. while same on HP 11i owner of filesystem and all files changes to 'root' group remaian same(test).
I have created a user 'java' belonging to group 'test'.
Our requirement is owner and group of files and filesystem shouldn't change after NFS mount.

anybody knows the solution?

thanx in advance
never give up
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: nfs mount changes the owner to root

Ravi,

The uid needs to match up between the exporting system and the importing. Does the java user have the same numerical uid on both?

Pete

Pete
T G Manikandan
Honored Contributor

Re: nfs mount changes the owner to root

Ravi,

Whenever you export files from a nfs server machine,the client machine maps that UID to the local pasword file UID list.

You can overcome this by having the UID and GID same on both the machines.

Thanks
Ravi_8
Honored Contributor

Re: nfs mount changes the owner to root

Hi, pete/TG

user has the same uid and gid on both server and client, still the problem unsolved
never give up