[Samba] Auto Create Home - shadow_copy2 and root preexec

Rowland Penny rpenny at samba.org
Sun Oct 30 14:05:52 UTC 2016

On Sun, 30 Oct 2016 14:10:25 +0100
Leander Schäfer via samba <samba at lists.samba.org> wrote:

> Hi,
> I make use of shadow_copy2 and root preexec. The vfs root preexec is 
> responsible to auto create home directories which initially don't
> exist. The script behind it is well tested and works perfectly.
> Unfortunaltely shadow_copy2 seems to be called before root preexec
> and fails due to the missing ZFS home share which causes the session
> to fail completely before root preexec even has a chance to create
> the home.
> So the question ist: how can I enforce root preexec before
> shadow_copy2 is going to be called?
> Thanks in advance
> Best regards
> Leander

A bit more info might help ;-)
What is obvious to you , certainly isn't to us.

What are you connecting to ?
and from what ?
Posting your (sanitized) smb.conf will help.


More information about the samba mailing list