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

Rowland Penny rowlandpenny241155 at gmail.com
Wed Oct 21 12:30:00 UTC 2015


On 21/10/15 12:41, mourik jan heupink wrote:
> 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
>

OK, further tests, Mourik is correct, if you use '[homes]' and browse 
direct to the users share it works, whats more, exactly the same setup 
works on a DC!, so it would seem that you can use '[homes]' on a DC, you 
just cannot browse to the 'homes' share (well, I cannot).

I feel more tests coming on. :-)

Rowland





More information about the samba mailing list