Gimili
2015-Dec-12 15:04 UTC
[Samba] domain authentication issue after rebooting Debian Jessie - need to restart samba each time
> On Dec 11, 2015, at 12:27 PM, Rowland penny <rpenny at samba.org> wrote: > >> On 11/12/15 16:52, gimili wrote: >> I followed the instructions here: https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller.' >> >> Everything works find except when I reboot I have to restart samba or I added a pause and then restart to /etc/rc.local otherwise the windows machines can't authenticate. >> >> I googled this problem but have not been able to figure out the solution. >> >> My OS is debian Jessie. >> >> Many thanks for any help/advice. >> > > OK, I understand that you followed the wiki and you are using debian jessie, but just how did you install Samba, from distro packages or Sernet, or self compiled ? > > RowlandFrom the distro packages.
Rowland penny
2015-Dec-12 16:19 UTC
[Samba] domain authentication issue after rebooting Debian Jessie - need to restart samba each time
On 12/12/15 15:04, Gimili wrote:> >> On Dec 11, 2015, at 12:27 PM, Rowland penny <rpenny at samba.org> wrote: >> >>> On 11/12/15 16:52, gimili wrote: >>> I followed the instructions here: https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller.' >>> >>> Everything works find except when I reboot I have to restart samba or I added a pause and then restart to /etc/rc.local otherwise the windows machines can't authenticate. >>> >>> I googled this problem but have not been able to figure out the solution. >>> >>> My OS is debian Jessie. >>> >>> Many thanks for any help/advice. >>> >> OK, I understand that you followed the wiki and you are using debian jessie, but just how did you install Samba, from distro packages or Sernet, or self compiled ? >> >> Rowland > From the distro packages.OK, this means that you are running 4.1.17 and I think this is what is happening: When you install the samba package on jessie it installs the following files in /etc/init.d nmbd samba samba-ad-dc smbd It then runs 'update-rc.d xxxx defaults' and 'invoke-rc.d xxxx start' where 'xxxx' is one of the filenames above, it does this for all the 4 files. You then setup Samba as an active directory controller and so you only need the 'samba-ad-dc' init file, this will start smbd. You do not need the others, but they will still try to start at boot, so what I suggest you do (and what I did) is to remove the ones you do not need. update-rc.d -f nmbd remove update-rc.d -f smbd remove update-rc.d -f samba remove You should check if the winbind package is installed, if it is, you should also stop this being started at boot. Reboot the DC, it should now just start the samba deamon via /etc/init.d/samba-ad-dc, this will then start smbd. Hopefully this should fix your problem, if it does, you can then remove the unwanted init files: rm -f /etc/init.d/ nmbd rm -f /etc/init.d/ smbd rm -f /etc/init.d/ samba Note, if do this, you do it at your risk, it shouldn't damage anything (well it didn't for me), you should also backup everything just in case. Rowland
gimili
2015-Dec-15 15:31 UTC
[Samba] domain authentication issue after rebooting Debian Jessie - need to restart samba each time
On 12/12/2015 11:19 AM, Rowland penny wrote:> On 12/12/15 15:04, Gimili wrote: >> >>> On Dec 11, 2015, at 12:27 PM, Rowland penny <rpenny at samba.org> wrote: >>> >>>> On 11/12/15 16:52, gimili wrote: >>>> I followed the instructions here: >>>> https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Controller.' >>>> >>>> Everything works find except when I reboot I have to restart samba >>>> or I added a pause and then restart to /etc/rc.local otherwise the >>>> windows machines can't authenticate. >>>> >>>> I googled this problem but have not been able to figure out the >>>> solution. >>>> >>>> My OS is debian Jessie. >>>> >>>> Many thanks for any help/advice. >>>> >>> OK, I understand that you followed the wiki and you are using debian >>> jessie, but just how did you install Samba, from distro packages or >>> Sernet, or self compiled ? >>> >>> Rowland >> From the distro packages. > > OK, this means that you are running 4.1.17 and I think this is what is > happening: > > When you install the samba package on jessie it installs the following > files in /etc/init.d > > nmbd > samba > samba-ad-dc > smbd > > It then runs 'update-rc.d xxxx defaults' and 'invoke-rc.d xxxx start' > where 'xxxx' is one of the filenames above, it does this for all the 4 > files. > > You then setup Samba as an active directory controller and so you only > need the 'samba-ad-dc' init file, this will start smbd. You do not > need the others, but they will still try to start at boot, so what I > suggest you do (and what I did) is to remove the ones you do not need. > > update-rc.d -f nmbd remove > update-rc.d -f smbd remove > update-rc.d -f samba remove > > You should check if the winbind package is installed, if it is, you > should also stop this being started at boot. > > Reboot the DC, it should now just start the samba deamon via > /etc/init.d/samba-ad-dc, this will then start smbd. > > Hopefully this should fix your problem, if it does, you can then > remove the unwanted init files: > > rm -f /etc/init.d/ nmbd > rm -f /etc/init.d/ smbd > rm -f /etc/init.d/ samba > > Note, if do this, you do it at your risk, it shouldn't damage anything > (well it didn't for me), you should also backup everything just in case. > > Rowland >Thank you kindly for the advice. I gave it a whirl and still no luck on reboot. I now have to manually start /etc/init.d/samba-ad-dc. Any other suggestions please and thanks. -- gimili
L.P.H. van Belle
2015-Dec-15 17:13 UTC
[Samba] domain authentication issue after rebooting Debian Jessie - need to restart samba each time
Hai, If not, well, very stange, i have about 7 Jessie's here with samba and i dont have any problems. I think systemd is blocking your startup of samba due to multple errors on startups previously. Few questions? Do you have samba with shares over nfs? If so, create te following folder : /etc/systemd/system/nfs-common.service.d/ Add the following file with content to the file : remote-fs-pre.conf [Unit] Before=remote-fs-pre.target Wants=remote-fs-pre.target What is the output of ? systemctl status samba-ad-dc if its masked.. then type :' systemctl unmask samba-ad-dc and systemctl restart samba-ad-dc reboot and see if its all started. Greetz, Louis> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens gimili > Verzonden: dinsdag 15 december 2015 16:32 > Aan: Rowland penny > CC: samba at lists.samba.org > Onderwerp: Re: [Samba] domain authentication issue after rebooting Debian > Jessie - need to restart samba each time > > On 12/12/2015 11:19 AM, Rowland penny wrote: > > On 12/12/15 15:04, Gimili wrote: > >> > >>> On Dec 11, 2015, at 12:27 PM, Rowland penny <rpenny at samba.org> wrote: > >>> > >>>> On 11/12/15 16:52, gimili wrote: > >>>> I followed the instructions here: > >>>> > https://wiki.samba.org/index.php/Setup_a_Samba_Active_Directory_Domain_Con > troller.' > >>>> > >>>> Everything works find except when I reboot I have to restart samba > >>>> or I added a pause and then restart to /etc/rc.local otherwise the > >>>> windows machines can't authenticate. > >>>> > >>>> I googled this problem but have not been able to figure out the > >>>> solution. > >>>> > >>>> My OS is debian Jessie. > >>>> > >>>> Many thanks for any help/advice. > >>>> > >>> OK, I understand that you followed the wiki and you are using debian > >>> jessie, but just how did you install Samba, from distro packages or > >>> Sernet, or self compiled ? > >>> > >>> Rowland > >> From the distro packages. > > > > OK, this means that you are running 4.1.17 and I think this is what is > > happening: > > > > When you install the samba package on jessie it installs the following > > files in /etc/init.d > > > > nmbd > > samba > > samba-ad-dc > > smbd > > > > It then runs 'update-rc.d xxxx defaults' and 'invoke-rc.d xxxx start' > > where 'xxxx' is one of the filenames above, it does this for all the 4 > > files. > > > > You then setup Samba as an active directory controller and so you only > > need the 'samba-ad-dc' init file, this will start smbd. You do not > > need the others, but they will still try to start at boot, so what I > > suggest you do (and what I did) is to remove the ones you do not need. > > > > update-rc.d -f nmbd remove > > update-rc.d -f smbd remove > > update-rc.d -f samba remove > > > > You should check if the winbind package is installed, if it is, you > > should also stop this being started at boot. > > > > Reboot the DC, it should now just start the samba deamon via > > /etc/init.d/samba-ad-dc, this will then start smbd. > > > > Hopefully this should fix your problem, if it does, you can then > > remove the unwanted init files: > > > > rm -f /etc/init.d/ nmbd > > rm -f /etc/init.d/ smbd > > rm -f /etc/init.d/ samba > > > > Note, if do this, you do it at your risk, it shouldn't damage anything > > (well it didn't for me), you should also backup everything just in case. > > > > Rowland > > > Thank you kindly for the advice. I gave it a whirl and still no luck on > reboot. I now have to manually start /etc/init.d/samba-ad-dc. Any > other suggestions please and thanks. > -- > gimili > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Possibly Parallel Threads
- domain authentication issue after rebooting Debian Jessie - need to restart samba each time
- domain authentication issue after rebooting Debian Jessie - need to restart samba each time
- domain authentication issue after rebooting Debian Jessie - need to restart samba each time
- domain authentication issue after rebooting Debian Jessie - need to restart samba each time
- domain authentication issue after rebooting Debian Jessie - need to restart samba each time