Is possible to mapping a remote uid to local uid using nfs and idmap?
With Solaris 11 I create a nfs share
Code:
zfs set share.nfs=on rpool/public Code:
mount solaris2:/var/public /mnt/share Solution 1: chmod 777 Code:
chmod 777 /var/public #NO COMMENT change the uid of my local Solaris user to the uid on remote Linux user and then give an acl, this is ok if you have one user only, is simply awful in a multiuser system (you have to replace all old uids with the newest!) Solution 3: Mapping the uid of remote user to a local user and then give the acl Code:
idmap add remoteuser@remotehost unixuser:myuser The local user can write data to /var/public, the remote not, why? My idea is to map the external uid (1000) to local uid (100) Is possible? Thanks |
Solution found with a workaround
I have created a group with the same gid on both client and server and then with an acl I give write permission to users belong to the group On client (Linux) Code:
groupadd -g 10093 nfs-users Code:
groupadd -g 10093 nfs-users Code:
chmod A+group:nfs-users:write_data/append_data/execute/add_file/add_subdirectory:allow /var/public A better solution was to use AD (or samba4) + idmap, but this workaround play fine also in local files environment. |
All times are GMT -5. The time now is 11:13 PM. |