Aha, thanks a lot! I was already wondering how the matching goes. Using winbind for that is logical. I hope it does not cause too much delay, and that winbind is "smart" (caching and not doing lookups for standard SID's like ....-513). Do you maybe know the fuse ntfs-3g fuse fs to mount ntfs?? They are also using a mapping... using a special file. Stef > > > Stef, > > This patchset would enable you to map a SID to either an uid or a gid > using services of winbind. > > You will need to run winbind (/etc/init.d/winbind script), make changes > to /etc/nsswitch.conf to include winbind in passwd and group databases, > have winbind specific entries in smb.conf and cifs.upcall binary > (/usr/sbin/cifs.upcall) be running. > And you will need to mount the share using mount option Âcifsacl. > > Basically, map a SID (owner SID, group SID, any SID in the (D)ACL) > to either an uid or a gid using winbind APIs. > If that fails (e.g. because winbind is not installed/running or winbind returns > an error), try to obtain uid of 'nobody' and gid of 'nogroup'. > And if that fails, kernel assigns uid and gid (from mount superblock). > > Regards, > > Shirish > -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html