[Samba] template homedir

Rowland Penny rpenny at samba.org
Thu Oct 13 15:54:18 UTC 2022

On 13/10/2022 16:38, Peter Carlson via samba wrote:
> Hi Rowland,
> I didn't want to put the actual names in the email, so I'll put the 
> pertinant part of [global] with the name slightly changed
> [global]
>      netbios name = NC1
>      server role = active directory domain controller
>      server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, 
> winbindd, ntp_signd, kcc, dnsupdate
>      workgroup = SPC
>      idmap_ldb:use rfc2307 = yes
> home folders are getting created as : /home/peter at petercarlson.local and 
> not peter at SPC

By default the template homedir is /home/%D/%U where '%D' is the 
workgroup (in this case 'SPC') and '%U' is the username, which means you 
should be getting /home/SPC/peter. You do not seem to be getting this, 
so I presume that you have set the 'unixHomeDirectory' attribute in AD, 
if so, what did you use for the value.

I suppose that I should point that Samba does not recommend using a DC 
as a fileserver.


More information about the samba mailing list