[Samba] Users' Home Folders - conflicting advice in WiKi

Rowland penny rpenny at samba.org
Fri Apr 10 20:53:21 UTC 2020


On 10/04/2020 21:25, Alex MacCuish via samba wrote:
> The way I do it, I create the home folder share on the server and set 
> the required ACLs as in the wiki. Then I fill in the field in the ADUC 
> Pane, Profile Path. Then I click ok. At that point, ADUC should open a 
> connection to the share, create the new folder, set the acl correctly 
> and then change the ownership.

Hang on, that isn't the users home directory, it is the users Windows 
profile.

There are a couple of other attributes possibly in play here:

homeDirectory

unixHomeDirectory

The first is for the path to the Windows home directory, e.g. 
'\\computername\users\username'

The second is for the path to the Unix home directory, e.g. '/home/username'

>
> pam_mkhomedir is for when you're logging in say via SSH and unix needs 
> somewhere to put your dot files. It's not automatically mounted from 
> the user home share. These are two separate concepts. pam_mkhomedir, 
> as far as I know, never automatically creates home directories on the 
> server in the user profile share.

If you log in using ssh or directly to the computer, then Samba isn't 
used and either you must create the users home directory, or use 
pam_mkhomedir to create it for you.

If you connect to a users home directory via Samba, then the users home 
directory must exist or you need to create it via a 'root prexec' 
script, pam_mkhomedir will not be used.

Rowland






More information about the samba mailing list