Samba package 4.9.x samba smbd not playing with winbind.

L.P.H. van Belle belle at bazuin.nl
Tue Sep 25 12:06:46 UTC 2018


Hai, 

@Rowland... Cheating he...  ;-)  
Its exact the same, check below. 

New devuan 2.0 install, expert install, only ssh and standard utils. 

I've logged in, sudo su -
And did the following..

wget -O - http://apt.van-belle.nl/louis-van-belle.gpg-key.asc | apt-key add -
echo "deb http://apt.van-belle.nl/debian stretch-experimental main contrib non-free" | sudo tee -a /etc/apt/sources.list.d/van-belle.list

apt-get update

apt-get install samba winbind
All sucessfull... You think... but its not.... 

Check this . 

root at duvean2:~# ps fax | egrep "winbind|?mbd"
 7374 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 7165 ?        Ss     0:00 /usr/sbin/winbindd
 7174 ?        S      0:00  \_ winbindd: domain child [DUVEAN2]
 7289 ?        S      0:00  \_ winbindd: idmap child
 7301 ?        Ss     0:01 /usr/sbin/nmbd -D
root at duvean2:~#

What is missing....   smbd ..

root at duvean2:~# cat /var/log/samba/log.smbd
[2018/09/25 13:35:50.526993,  0] ../source3/auth/auth_util.c:1382(make_new_session_info_guest)
  create_local_token failed: NT_STATUS_ACCESS_DENIED
[2018/09/25 13:35:50.527041,  0] ../source3/smbd/server.c:2000(main)
  ERROR: failed to setup guest info.

So exact the same problem, and i'll prove it.. 
 
apt-get remove winbind
/etc/init.d/smbd start
 
And here smbd is...   
root at duvean2:~# ps fax | egrep "winbind|?mbd"
 7591 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 7317 ?        Ss     0:01 /usr/sbin/nmbd -D
 7561 ?        Ss     0:00 /usr/sbin/smbd -D
 7567 ?        S      0:00  \_ /usr/sbin/smbd -D
 7569 ?        S      0:00  \_ /usr/sbin/smbd -D
 7582 ?        S      0:00  \_ /usr/sbin/smbd -D


And im installing winbind back.

root at duvean2:~# apt-get install winbind
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  libnss-winbind libpam-winbind
The following NEW packages will be installed:
  winbind
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/550 kB of archives.
After this operation, 1,903 kB of additional disk space will be used.
Selecting previously unselected package winbind.
(Reading database ... 32041 files and directories currently installed.)
Preparing to unpack .../winbind_2%3a4.9.1+nmu-1~deb9_amd64.deb ...
Unpacking winbind (2:4.9.1+nmu-1~deb9) ...
Setting up winbind (2:4.9.1+nmu-1~deb9) ...
[ ok ] Stopping the Winbind daemon: winbind.
[ ok ] Starting the Winbind daemon: winbind.
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for man-db (2.7.6.1-2) ...
root at duvean2:~# /etc/init.d/smbd restart
[ ok ] Stopping SMB/CIFS daemon: smbd.
[ ok ] Starting SMB/CIFS daemon: smbd.
root at duvean2:~# ps fax | egrep "winbind|?mbd"
 7870 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 7317 ?        Ss     0:01 /usr/sbin/nmbd -D
 7695 ?        Ss     0:00 /usr/sbin/winbindd
 7700 ?        S      0:00  \_ winbindd: domain child [DUVEAN2]
 7859 ?        S      0:00  \_ winbindd: idmap child

And smbd is gone again. 

Now i enabled the the 2 idmap * lines. 	

/etc/init.d/smbd restart
[....] Stopping SMB/CIFS daemon: smbdstart-stop-daemon: warning: failed to kill 7847: No such process
. ok
[ ok ] Starting SMB/CIFS daemon: smbd.

root at duvean2:~# ps fax | egrep "winbind|?mbd"
 7946 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 7317 ?        Ss     0:01 /usr/sbin/nmbd -D
 7695 ?        Ss     0:00 /usr/sbin/winbindd
 7700 ?        S      0:00  \_ winbindd: domain child [DUVEAN2]
 7859 ?        S      0:00  \_ winbindd: idmap child
 7862 ?        Ss     0:00 /usr/sbin/nmbd -D
( Still no smbd ) 

Stopping everything. 
root at duvean2:~# /etc/init.d/winbind stop
[ ok ] Stopping the Winbind daemon: winbind.
root at duvean2:~# /etc/init.d/nmbd stop
[ ok ] Stopping NetBIOS name server: nmbd.
root at duvean2:~# /etc/init.d/smbd stop
[....] Stopping SMB/CIFS daemon: smbdstart-stop-daemon: warning: failed to kill 7919: No such process
. Ok


Nothing running anymore. I've checked. 
Now apply the 2 idmap * lines again for all processes by starting everything again. 

root at duvean2:~# /etc/init.d/nmbd start
[ ok ] Starting NetBIOS name server: nmbd.
root at duvean2:~# /etc/init.d/smbd start
[ ok ] Starting SMB/CIFS daemon: smbd.

root at duvean2:~# ps fax | egrep "winbind|?mbd"
 8084 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 8033 ?        Ss     0:00 /usr/sbin/nmbd -D
 8060 ?        Ss     0:00 /usr/sbin/smbd -D
 8068 ?        S      0:00  \_ /usr/sbin/smbd -D
 8070 ?        S      0:00  \_ /usr/sbin/smbd -D
 8079 ?        S      0:00  \_ /usr/sbin/smbd -D

Now start winbind. 
root at duvean2:~# /etc/init.d/winbind start
[ ok ] Starting the Winbind daemon: winbind.
root at duvean2:~# ps fax | egrep "winbind|?mbd"
 8114 pts/0    S+     0:00                          \_ grep -E winbind|?mbd
 8033 ?        Ss     0:00 /usr/sbin/nmbd -D
 8060 ?        Ss     0:00 /usr/sbin/smbd -D
 8068 ?        S      0:00  \_ /usr/sbin/smbd -D
 8070 ?        S      0:00  \_ /usr/sbin/smbd -D
 8079 ?        S      0:00  \_ /usr/sbin/smbd -D
 8094 ?        Ss     0:00 /usr/sbin/winbindd
 8099 ?        S      0:00  \_ winbindd: domain child [DUVEAN2]


And all default setting no changes. 
So yes, its exact as Alexander told us.   ;-) 

Should we call it a bug and report it @bugzilla?


Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba-technical 
> [mailto:samba-technical-bounces at lists.samba.org] Namens 
> L.P.H. van Belle via samba-technical
> Verzonden: dinsdag 25 september 2018 13:15
> Aan: samba-technical at lists.samba.org
> Onderwerp: RE: Samba package 4.9.x samba smbd not playing 
> with winbind.
> 
> 
> Duvean 2.0 ? I'll go install that now. 
> And lets see what my output will be.. 
> 
> I'll report back shortly. 
> 
> Greetz, 
> 
> Louis
> 
> 
> 
> 
> 
> > -----Oorspronkelijk bericht-----
> > Van: samba-technical 
> > [mailto:samba-technical-bounces at lists.samba.org] Namens 
> > Rowland Penny via samba-technical
> > Verzonden: dinsdag 25 september 2018 12:31
> > Aan: samba-technical at lists.samba.org
> > CC: L.P.H. van Belle
> > Onderwerp: Re: Samba package 4.9.x samba smbd not playing 
> > with winbind.
> > 
> > On Tue, 25 Sep 2018 12:22:40 +0200
> > "L.P.H. van Belle via samba-technical"
> > <samba-technical at lists.samba.org> wrote:
> > 
> > > Hai Rowland. 
> > > 
> > > You did not install winbind. That is where the problem is. 
> > > If winbind is installed, then you have the error. 
> > > 
> > 
> > Good guess, but wrong ;-)
> > 
> > The following packages will be upgraded:
> >   desktop-base elogind libelogind0 libldb1 libnss-winbind 
> > libpam-winbind
> >   libpolkit-agent-1-0 libpolkit-backend-1-0-consolekit 
> > libsmbclient libvlc-bin
> >   libvlc5 libwbclient0 linux-image-amd64 policykit-1 
> > python-ldb python-samba
> >   samba samba-common samba-common-bin samba-dsdb-modules samba-libs
> >   samba-vfs-modules smbclient vlc vlc-bin vlc-data vlc-l10n 
> > vlc-plugin-base
> >   vlc-plugin-notify vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2
> >   vlc-plugin-video-output vlc-plugin-video-splitter 
> > vlc-plugin-visualization
> >   winbind
> > .............
> > Get:53 http://apt.van-belle.nl/debian 
> > stretch-experimental/main amd64 winbind amd64 
> > 2:4.9.1+nmu-1~deb9 [550 kB]
> > .......................
> > Preparing to unpack 
> .../21-winbind_2%3a4.9.1+nmu-1~deb9_amd64.deb ...
> > Unpacking winbind (2:4.9.1+nmu-1~deb9) over (2:4.7.8+nmu-1~deb9) ...
> > ...........................
> > Setting up winbind (2:4.9.1+nmu-1~deb9) ...
> > [ ok ] Stopping the Winbind daemon: winbind.
> > [ ok ] Starting the Winbind daemon: winbind.
> > 
> > Rowland
> > 
> > 
> 
> 
> 




More information about the samba-technical mailing list