[Samba] how to automatically create the home directory
rpenny at samba.org
Thu Oct 10 10:26:59 UTC 2019
On 10/10/2019 11:14, Stefan G. Weichinger via samba wrote:
> Customer asks why [home] doesn't work for a new AD user, turns out the
> linux directory doesn't exist on the DM server
> How to let that directory be created?
> I find this:
> but the GPO seems only to create the network drive ... but not the
> directory on the samba server itself.
> thanks all ...
There are three ways, depending on how the user connects.
You can manually create a home directory for each user.
If the user actually logs into the unix domain member, you can lever PAM
to create the home directory the first the user connects
If the user only connects over Samba, then you need to create the users
home directory with a script. Myself and Louis wrote such a script,
would you like a copy ?
More information about the samba