[Samba] start/stop ctdb

Rowland penny rpenny at samba.org
Tue Mar 3 10:16:25 UTC 2020

On 03/03/2020 09:51, L.P.H. van Belle via samba wrote:
> Hai,
> Hmm, about ..
>> "Environment=PATH=$PATH:/usr/local/samba/bin:/bin".
>> Needed also
>> to add "/bin" because couldnt find "sleep".
> /bin should be found in $PATH..
> In since it looks like it does not.
> Then i suggest this:
> Environment="PATH=$PATH:/usr/local/samba/bin:/usr/local/samba/sbin:/bin:/sbin:/usr/bin:/usr/sbin"

By default a normal user on Debian gets this PATH:


'root' gets this one:


So, when you reset PATH with $PATH at the start, as shown above, you 
will get this:

normal user:




Doing this will lead to any Samba binaries from OS packages being used 
first e.g. Debian puts smbd into /usr/sbin/

To get your compiled version of smbd used first, you need to set PATH 
like this:


This will lead to:

normal user:





More information about the samba mailing list