[Samba] Samba/Winbind uid/gid

Robert LeBlanc robert at leblancnet.us
Mon Jan 18 12:25:19 MST 2010

On Mon, Jan 18, 2010 at 3:09 AM, JC <x.illusi0n at gmail.com> wrote:

> Hi,
> I actually have to install another samba server connected to Active
> directory by using winbind.
> All works ok, but i have a little problem.
> In fact if i use getent |grep user on server1, the output is the following:
> server1:~# getent |grep user
> user:*:20083:20040:USER:/home/user:/bin/bash
> server1:~#
> on the second one server which use the same AD and the same
> configuration file exept for netbios i obtain:
> server2:~# getent |grep user
> user:*:20018:20110:USER:/home/user:/bin/bash
> server2:~#
> Is there a solution to abtain the same uid/gid on both server for all
> users?
You didn't specify what version of Samba you are using. If you are using
3.4.x, I suggest idmap_hash, if you are using something earlier, than I
would suggest idmap_rid. There are man pages for both.

Robert LeBlanc
Life Sciences & Undergraduate Education Computer Support
Brigham Young University

More information about the samba mailing list