[Samba] Question Wiki Setup a Samba Active Directory Domain Controller

Rowland Penny
2015-10-05T18:40:11Z

On 05/10/15 19:31, Sketch wrote:
> On Mon, 5 Oct 2015, Rowland Penny wrote:
>
>> On 05/10/15 18:56, Birgit Berger (UV Wien) wrote:
>>> How do I stop scripts samba, smbd and nmbd being run at startup?
>>
>> I do not know because you are using Debian Jessie, this uses systemd
>> which I absolutely refuse to use!
>>
>> Perhaps somebody else can tell you how to do this and explain just
>> how they are all got started, because if you don't know how to stop
>> them, I presume you don't know how they got started in the first
place.
>
> To disable systemd services:
>
> systemctl disable samba
> systemctl disable smbd
> etc
>
> However, it does not normally handle traditional init files, which his
> services appear to be.  At least in the redhat world, it redirects
> enable/disable calls for non-systemd services to chkconfig.  I don't
> know if it does the same on debian (does it have chkconfig?), uses
> another tool, or does nothing.  You may have to do things the (old)
> debian way, which involves removing symlinks from
/etc/rc<runlevel>.d/
> (or creating them to start a service in taht runlevel).
>

If the OP is using the older style init.d scripts, then the commands
would be:
service nmbd stop
update-rc.d -f nmbd remove

replace 'nmbd' with 'smbd' & 'winbind' for the other
two

Rowland