[Samba] Managing samba ad dc with systemd

L.P.H. van Belle belle at bazuin.nl
Mon Apr 29 06:45:56 UTC 2019


Well, im getting also out of options. 
The service files as shown by me and rowland, are correct. 

One i dont know, this server, did it have samba (as package) installed some day? And its removed? 
Then, i think there is still some left over from a packaged samba install.
All i can think off atm, and thats also what i mostly see on the internet with the error 127. 

Check in the folder /etc/init.d/ , if you see something of "winbind samba smbd nmbd".
If so, backup it, and remove it from /etc/init.d/ 

Then stop/start samba
Run run : journalctl -r -u samba -u bind9 

The error 127 is a "command not found" 
So does this exist? /usr/local/samba/sbin/samba 
I think that is ..  /usr/local/sbin/samba 

You could install mlocate and run updatedb && locate samba
Or use find and track all files with samba in it. 

And/or, this is problely somethink simpel, we are not seeing. 
Think in, missing or wrong/corrupted file, or missing exec right on samba or missing folder. 
Of left overs from a previous (packaged) install exists. 

Try above things, and let us know the results. 



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> Rowland Penny via samba
> Verzonden: vrijdag 26 april 2019 18:58
> Aan: samba at lists.samba.org
> Onderwerp: Re: [Samba] Managing samba ad dc with systemd
> On Fri, 26 Apr 2019 13:32:32 -0300
> Igor Sousa <igorvolt at gmail.com> wrote:
> > Rowland,
> > 
> > I was thinking if I did anything wrong, but your clarification
> > cleared my mind. I appreciate your help.
> > 
> > I'm waiting if other person had a same issue and solved it.
> > 
> > 
> My last thought was, how does Fedora do this ?
> The following is based on Fedora's unit file:
> [Unit]
> Description=Samba AD Daemon
> Documentation=man:samba(8) man:samba(7) man:smb.conf(5)
> Wants=network-online.target
> After=network.target network-online.target
> [Service]
> Type=notify
> NotifyAccess=all
> PIDFile=/usr/local/samba/var/run/samba.pid
> LimitNOFILE=16384
> #EnvironmentFile=-/etc/sysconfig/samba
> ExecStart=/usr/local/samba/sbin/samba --foreground 
> --no-process-group $SAMBAOPTIONS
> ExecReload=/bin/kill -HUP $MAINPID
> #Environment=KRB5CCNAME=FILE:/run/samba/krb5cc_samba
> [Install]
> WantedBy=multi-user.target
> Rowland
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list