[Samba] gid and uid

dijuremo at math.gatech.edu dijuremo at math.gatech.edu
Wed Apr 20 15:33:47 GMT 2005

Samba SIDs are obtained from unix UIDs.  The rule is:

sambaSID (last digits)=UID*2+1000

So for example, adding the user root will always have a SID of:

If you use group mapping then you can match unix and windows groups:

net groupmap add unixgroup=UNIXNAME ntgroup="Domain Users"
Then you can list group mappings using:
net groupmap list

I have also set extended ACLS on my ext3 file system using setfacl and
getfacl and the windows xp clients will actually show you the extended ACLs
(user permissions for each user in the extended acl list) correctly when you
go to the security section of a file or folder.  Works really well.


Quoting Fabio Marcone <fabio.marcone at duet.it>:

> hi!
> I'm studing samba as PDC (with ldap backend) and I would know:
> - gid and uid are useful in samba? in other words: if pdc admin knows users'
> uids, he can recovery some wrong situations ?
> Example: if a user was cancelled and then readded, if his uid changes implies
> some troubles with shared files?
> NT mantains, after deletion, association between shared file and uid user and
> so if admin readded user with the same uid the system "restore" the right
> configuration.
> Thanks,
> Fabio
> --
> Dott. Fabio Marcone
> 2T srl
> Telefono   +39 - 0871- 540154
> Fax           +39 - 0871- 571594
> Indirizzo  Viale B. Croce 573, 66013 Chieti Scalo (CH)
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba

More information about the samba mailing list