[Samba] UID and GID mapping throw DC and Member DC

Rowland Penny rowlandpenny at googlemail.com
Wed Mar 25 07:02:15 MDT 2015


On 25/03/15 12:36, Jhon P wrote:
> Ok, im try add uidNumber for the user and it works, on both servers 
> UID is equal. :-)
> I can change the uid of the administrator or it may cause problems?
>

There are two schools of thought here, you can add a uidNumber to 
'Administrator' but if you do this, you will have to change ownership 
from 'root'  to 'Administrator' of anything that needs to be changed 
from windows. You can instead, map 'Administrator' to 'root' on a member 
server with a line in smb.conf: 'username map = /etc/samba/user.map' and 
the map file '/etc/samba/user.map' containing:

!root = DOMAIN\Administrator DOMAIN\administrator Administrator 
administrator

This is done automatically on an AD DC without the map file.

You pay your money and take your choice :-)

Rowland



More information about the samba mailing list