System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

nfs - change uid / gid of the mounted FS

g3jza
Esteemed Contributor

nfs - change uid / gid of the mounted FS

Hi,
I've got this task to do:

HP-UX will NFS export a FS, so it will act as NFS server. The uid of this FS is 'xxx' and group id is 'yyy' for example.

The NFS client on the RHEL would like to see this FS exported under different uid / gid , so 'zzz' , how can this be achieved in NFS?

Thanks for your ideas.
6 REPLIES
Dennis Handly
Acclaimed Contributor

Re: nfs - change uid / gid of the mounted FS

You can't, that's part of the security.
Ideally, you need to make sure the UID/GID of all machines match.

With Samba, you can match up Windows users with Unix UIDs. It may work for Linux?
Ismail Azad
Esteemed Contributor

Re: nfs - change uid / gid of the mounted FS

Hi q3,

Anyways... Using the NFS protocol ideally requires user and group consistency atleast_on_HPUX which is exactly the opposite of what you are trying to acheive... Well people go with NIS/LDAP to acheive this... Any reason why RHEL would want to see these UID's as different??

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
g3jza
Esteemed Contributor

Re: nfs - change uid / gid of the mounted FS

I thought this was possible by remapping uids on the client side. My work-mate told me that it's possible in nfsv4, in linux (Ubuntu/debian) the remapping needs to be made in /etc/idmapd.conf.


Ismail: The user on the client needs to be different from server side, because different user on the client side needs to be able to have read/write access to that exported FS.

I was also thinking about the final solution to be changed to Samba/CIFS, instead of NFS
Dennis Handly
Acclaimed Contributor

Re: nfs - change uid / gid of the mounted FS

>because different user on the client side needs to be able to have read/write access to that exported FS.

Have you thought of putting that user in a group that has R/W access?
I was also thinking of ACLs but don't know if they work over NFS.
g3jza
Esteemed Contributor

Re: nfs - change uid / gid of the mounted FS

Dennis: How simple was this :) , thanks for a final solution.
g3jza
Esteemed Contributor

Re: nfs - change uid / gid of the mounted FS

solved.