[Samba] uids/guids differ on new debian server

Hoffmann, Matthias Matthias.Hoffmann at schlemmerblock.de
Wed Jun 4 03:54:49 MDT 2014


got a Debian-Linux Server (Squeeze) which is running fine with samba version 3.5.6.

> getent passwd |grep userx


userx:*:10182:10005:user, x:/home/DOMAIN/userx:/bin/false

now there is another new installed debian server (Wheezy) which should replace the old one.

Installed samba (3.6.6) and winbind, joined the domain and showing the users with wbinfo -u works well.

But the uid and / guid differs!

Thats a problem because of the network shares (different permissions now).
Copied the data with rsync which kept the numeric ids of the permissions.

The new Server gives:

userx:*:15627:10513:user, x:/home/DOMAIN/userx:/bin/false

Ofcourse many other users face the same problem.

What I tried is to modiy the smb.conf ->

#       idmap config DOMAIN:range = 10000-25000
#       idmap config DOMAIN:base_rid = 0
#       idmap config DOMAIN:backend = rid

It CHANGED the uids and guids, but not to the right one.


         workgroup = DOMAIN
         netbios name = visn1
         realm = DOMAIN.SOMEMORE.LOCAL
         idmap uid = 10000-25000
         idmap gid = 10000-25000
         winbind separator = /
         winbind use default domain = Yes
         winbind enum groups = yes
         winbind enum users = yes
         security = ADS
         encrypt passwords = true
         client use spnego = yes


passwd:         compat winbind
group:          compat winbind
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Hopefully all information were provided, if not please ask.

Thanks for reading!

More information about the samba mailing list