[Samba] Strange things with [template homedir] on samba 4.2.0pre1-GIT-9869358
anton at acisi.ru
anton at acisi.ru
Thu Mar 6 03:37:15 MST 2014
getent passwd and wbinfo --user-info return "/home/%D/%U" as home dir.
#wbinfo --user-info="INTERNAL\anton"
INTERNAL\anton:*:10000:10011:Chernousov Anton:/home/%D/%U:/bin/bash
# getent passwd
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
...
INTERNAL\guest:*:10003:10010:Guest:/home/%D/%U:/bin/bash
INTERNAL\admin:*:10006:10011:admin:/home/%D/%U:/bin/bash
I try to add template homedir in config file but has no effect. :(
I use schema_mode = rfc2307 and my config is:
[global]
workgroup = INTERNAL
server string = DEVELOPER-01 (Internet server)
server role = member server
security = ADS
encrypt passwords = true
log file = /var/log/samba/log.%m
max log size = 500
realm = INTERNAL.ACISI.RU
netbios name = DEVELOPER-01
dns proxy = no
log level = 2
winbind offline logon = true
client use spnego = yes
winbind enum groups = yes
winbind enum users = yes
winbind refresh tickets = yes
winbind use default domain = no
template shell = /bin/bash
template homedir = /home/%D/%U
map untrusted to domain = yes
idmap config * : backend = tdb
idmap config * : range = 40001-90000
idmap config INTERNAL : backend = ad
idmap config INTERNAL : schema_mode = rfc2307
idmap config INTERNAL : range = 9800-20000
idmap config INTERNAL : base_rid = 0
auth methods = winbind
#[data_vol]
# comment = Data Volume directory
# browseable = yes
# writable = yes
# path = /opt/data_vol/
# guest ok = yes
# force user = root
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes
Any idea where to look?
Sorry for my bad English.
More information about the samba
mailing list