Rowland Penny
2024-Dec-05 14:36 UTC
[Samba] Samba Crashes on AD DC if "unix extensions" is Enabled
On Thu, 5 Dec 2024 09:08:14 -0500 "John R. Graham via samba" <samba at lists.samba.org> wrote:> /var/log/messages shows: > > ??? Dec? 5 08:33:45 ceres smbd[12109]: smbd version 4.21.1 started. > ??? Dec? 5 08:33:45 ceres smbd[12109]:?? Copyright Andrew Tridgell > and the Samba Team 1992-2024 > ??? Dec? 5 08:33:45 ceres samba[12095]: [2024/12/05 08:33:45.176096, > 0] ../../source4/samba/server.c:403(samba_terminate) > ??? Dec? 5 08:33:45 ceres samba[12095]:?? samba_terminate: > samba_terminate of samba 12095: kdc failed to setup interfaces > ??? Dec? 5 08:36:52 ceres /etc/init.d/samba[12570]: status: crashed > > Is this another of those, "I told you not to have shares on your DC!" > situations? (Moving away from them. Promise.) > > - JohnI would like to see the lines above that, it is possible that you are starting the wrong binary. You still appear to be using init.d scripts and the 'samba' init.d script used to start the smbd & nmbd binaries, on a DC you should start the 'samba' binary (not to be confused with the 'samba' init.d script) and this starts smbd and winbindd. Rowland
John R. Graham
2024-Dec-05 14:51 UTC
[Samba] Samba Crashes on AD DC if "unix extensions" is Enabled
On 12/5/24 09:36, Rowland Penny via samba wrote:> I would like to see the lines above that, it is possible that you are > starting the wrong binary. > > You still appear to be using init.d scripts and the 'samba' init.d > script used to start the smbd & nmbd binaries, on a DC you should start > the 'samba' binary (not to be confused with the 'samba' init.d script) > and this starts smbd and winbindd. > > RowlandThese are init scripts for the Gentoo-maintained OpenRC init system, not what ships with samba. Here's a complete set of messages from a clean start (without unix extensions enabled): ??? Dec? 5 09:42:28 ceres samba[24856]: [2024/12/05 09:42:28.619902,? 0] ../../source4/samba/server.c:633(binary_smbd_main) ??? Dec? 5 09:42:28 ceres samba[24856]:?? samba version 4.21.1 started. ??? Dec? 5 09:42:28 ceres samba[24856]:?? Copyright Andrew Tridgell and the Samba Team 1992-2024 ??? Dec? 5 09:42:28 ceres smbd[24873]: [2024/12/05 09:42:28.949806,? 0] ../../source3/smbd/server.c:1965(main) ??? Dec? 5 09:42:28 ceres smbd[24873]:?? smbd version 4.21.1 started. ??? Dec? 5 09:42:28 ceres smbd[24873]:?? Copyright Andrew Tridgell and the Samba Team 1992-2024 ??? Dec? 5 09:42:29 ceres winbindd[24901]: [2024/12/05 09:42:29.040023,? 0] ../../source3/winbindd/winbindd.c:1447(main) ??? Dec? 5 09:42:29 ceres winbindd[24901]:?? winbindd version 4.21.1 started. ??? Dec? 5 09:42:29 ceres winbindd[24901]:?? Copyright Andrew Tridgell and the Samba Team 1992-2024 and with unix extension enabled: Well, hmm, this time it doesn't crash. The *only* change on the AD I made was to uncomment the "unix extensions = yes" line in smb.conf. - John