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

Ole Traupe ole.traupe at tu-berlin.de
Wed Oct 21 15:07:16 UTC 2015



Am 21.10.2015 um 14:35 schrieb Rowland Penny:
> On 21/10/15 13:30, Rowland Penny wrote:
>> 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
>>
>>
>
> Just had a further thought, has the OP made his script executable ? 
> probably he has, but easy to forget.

Yes, he has. He can even run it successfully by hand.

>
> Rowland
>
>

-- 

Dr. Ole Traupe

Lab Manager

Technische Universität Berlin
Biopsychologie und Neuroergonomie
Institut für Psychologie und Arbeitswissenschaft

Biological Psychology and Neuroergonomics
Department of Psychology and Ergonomics

Postanschrift/Mail to:

TU Berlin
Sekr. MAR 3-2
Marchstr. 23
10587 Berlin
GERMANY

Zimmer/Office: MAR 3.052
Telefon/Phone: (+49) 030 314 22721
Fax: (+49) 030 314 25274

E-Mail: ole.traupe at tu-berlin.de
www.bpn.tu-berlin.de






More information about the samba mailing list