[Samba] Can't get 'root preexec' to run

mourik jan heupink heupink at merit.unu.edu
Wed Oct 21 11:41:19 UTC 2015


Hi,

On 10/21/2015 01:21 PM, Rowland Penny wrote:
> I am now beginning to think it doesn't work at all, if samba4 is
> involved in any way. I knew that it wouldn't work on a DC (probably
> because the user is DOMAIN\username and not just username), but from my
> experiment (see my earlier post) it doesn't seem to work at all, try
> your setup with '[home]' and a path line.
>
> Rowland
>

Probably I misunderstand the above, but I can only say: we're on 
samba4.1.17, and on our fileserver we use this:

> [homes]
> 	root preexec = /usr/local/sbin/mkhomedir.sh %U
> 	comment=Home directory for %S
> 	read only = No
> 	browseable = No
> 	create mask = 0770
> 	directory mask = 0770

And this works as expected: the preexec runs, and the homes share gives 
us per user home folders.

MJ



More information about the samba mailing list