[Samba] smb.conf root preexec ?

Rowland Penny rpenny at samba.org
Fri Jul 27 08:25:11 UTC 2018

On Fri, 27 Jul 2018 04:16:33 +0100
niya via samba <samba at lists.samba.org> wrote:

> Hi Rowland
> thanks for the quick reply
> i've not given you enough information and sent you off in the wrong 
> direction.
> my os is archlinux , the dc will be a fresh install and no 
> configurations have been set or scripts written yet.
> no sssd just standard winbindd,
> my intention is that when a new user logs in,
> the dc via ssh will run a script or directly run the commands on the 
> home dir fileserver which has a btrfs fs,
> to create the btrfs subvolumes and mount them at the appropriate
> location , is there is a better way than using ssh maybe something
> internal to samba ? on completion of that process the dc resumes the
> login process of the new user.
> what would be the smb.conf and any other config commands to achieve
> this ?
> shadrock

The problem is that the DC just provides authentication and yes, whilst
I suppose you could place a script in netlogon to do what you require,
there are better ways of doing this, autofs, pam-mount or pam-script,
so I suggest you investigate these, I would start with the last one


More information about the samba mailing list