[Samba] uids/guids differ on new debian server
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
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:
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
hosts: files dns
protocols: db files
services: db files
ethers: db files
rpc: db files
Hopefully all information were provided, if not please ask.
Thanks for reading!
More information about the samba