[Samba] steps to get automatic home folder created at user logon windows 10 with samba 4.9.5-Debian
Rowland penny
rpenny at samba.org
Thu Apr 30 07:49:59 UTC 2020
On 29/04/2020 22:07, Jelle de Jong via samba wrote:
> Hello everybody,
>
> I been at this for more then a week and went through the archives and
> wiki but can not get it to work.
>
>
> root at samba01:~# cat /etc/samba/smb.conf
> [global]
>
> #username map = /usr/local/samba/etc/user.map
You need the user.map
>
>
> idmap config SAMDOM:backend = rid
> idmap config SAMDOM:range = 10000-999999
You need to use the 'ad' backend
>
> template homedir = /home/%U
I think that is your problem right there, if you are trying to create a
link something like map 'H:' to '/home/%U' in the 'profiles' tab (%U
could be a username), it will not work. This was raised here recently
and I said it didn't work, well it does, provide you do not specify '%U'
in the share path in smb.conf, the only possible problem could be the
permissions the users dir gets created with and you can fix that with a
'root preexec' script.
>
> idmap config SAMDOM:unix_primary_group = yes
That only works with the 'ad' backend
>
> winbind enum users = yes
> winbind enum groups = yes
Never set those, they just slow things down.
>
> [documenten]
> path = /srv/storage/shares
> read only = No
> create mask = 0660
> directory mask = 0770
> inherit acls = Yes
> map acl inherit = Yes
> hide unreadable = Yes
> store dos attributes = Yes
> vfs objects = recycle
You have turned acl_xattr off
Rowland
More information about the samba
mailing list