How to map Windows ACL to rhel on a CIFS share?
hi rhel community,
my need is to be able to mount a shared folder from windows machine to my rhel vm with cifs obviously, i could do that easily using :
mount -t cifs //server/share /path/share -o username=login,password=password,uid=uidX,gid=gidX
now i want to grant rwx to another user in addition to the user with uidX in mount option, and unfortunately posix acl is not supported, so i have to do this differently. so i figured out that cifs have an option [cifsacl] to allow mapping SID's from windows to uid/gid, but everything is mapped to root:root in somehow.
In the man of cifs.idmap is mentionned :
cifs.idmap works in conjuction with winbind facility of Samba suite to map owner and group SIDs to uids and gids respectively. It is best utilized when
- a mount option of cifsacl is specified when mounting a cifs share
could anyone explain to me how can i achieve that or even if there is another solution, it will be very helpful.
My regagards
Raouf.