[Samba] Check user's access rights / permissions in CIFS folders (from Linux)
dev.nitin at outlook.com
Mon Jul 29 02:12:30 MDT 2013
I'm connecting to a Windows CIFS share from a Linux machine using libsmbclient. Is there a way for me to know if the user has write permissions to a particular file/folder?
I know that smbcacls can be used to get the ACLs, something like the following:
smbc_getxattr() in libsmbclient.h also returns these attributes.
But how do I use this information to calculate the effective rights of the current user?
I think I could do it if I get the SID of the current user and the groups that this user is a member of. But I'm not sure how to do that from a Linux box.
Samba version: 3.2.15
More information about the samba