cd samba-4.4.0 ./configure --prefix=/usr/local/samba --fatal-errors --enable-gnutls --enable-debug --enable-selftest make make install ln -v -fs /usr/local/samba/lib/security/pam_winbind.so /lib64/security/pam_winbind.so ln -v -fs /usr/local/samba/lib/security/pam_smbpass.so /lib64/security/pam_smbpass.so ln -v -fs /usr/local/samba/lib/libnss_winbind.so.2 /lib64/ ln -v -fs /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so ln -v -fs /usr/local/samba/lib/libnss_wins.so.2 /lib64/ ln -v -fs /lib64/libnss_wins.so.2 /lib64/libnss_wins.so ln -v -fs /usr/local/samba/bin/net /usr/bin/net ln -v -fs /usr/local/samba/bin/smbspool /usr/lib/cups/backend/smb ldconfig 2016-03-23 11:33 GMT+02:00 Rowland penny <rpenny at samba.org>:> On 22/03/16 12:17, barış tombul wrote: > >> I would appreciate it if you can change the host value in the >> /etc/nsswitch.conf file from *hosts:* to *files wins dns * and try >> again by restarting the server, since the error occurs whenever I restart >> the server. >> However, If I change the host value which is *hosts: * in the >> /etc/nsswitch.conf file to *files dns wins *and restart the server >> everything runs perfectly, when the alignment of wins and dns value is >> reversed a problem occurs. >> Can you try this, I do not think I'm the only one subject to this >> situation. >> >> Best Regards... >> >> >> > OK, I have computer running Samba 4.4.0 and this in /etc/nsswitch.conf: > > hosts: files wins dns > > 'ping -c1 google.com' produces this: > > PING google.com (31.55.167.184) 56(84) bytes of data. > 64 bytes from 31.55.167.184: icmp_seq=1 ttl=56 time=9.43 ms > > --- google.com ping statistics --- > 1 packets transmitted, 1 received, 0% packet loss, time 0ms > rtt min/avg/max/mdev = 9.432/9.432/9.432/0.000 ms > > It doesn't segfault. > > Can I ask, did you compile Samba yourself ? > If so, how did you create the libnss_wins.so.2 link ? > > Rowland > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 23/03/16 10:12, barış tombul wrote:> cd samba-4.4.0 > ./configure --prefix=/usr/local/samba --fatal-errors --enable-gnutls > --enable-debug --enable-selftest > make > make install > > > > > ln -v -fs /usr/local/samba/lib/security/pam_winbind.so > /lib64/security/pam_winbind.so > ln -v -fs /usr/local/samba/lib/security/pam_smbpass.so > /lib64/security/pam_smbpass.so > ln -v -fs /usr/local/samba/lib/libnss_winbind.so.2 /lib64/ > ln -v -fs /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so > ln -v -fs /usr/local/samba/lib/libnss_wins.so.2 /lib64/ > ln -v -fs /lib64/libnss_wins.so.2 /lib64/libnss_wins.so > ln -v -fs /usr/local/samba/bin/net /usr/bin/net > ln -v -fs /usr/local/samba/bin/smbspool /usr/lib/cups/backend/smb > ldconfig > >When you tried to create the link for 'pam_smbpass.so', did it not show an error ? It should have, as pam_smbpass has been remove from 4.4.0. Can you try removing the 'libnss_wins' links from /lib64 and then recreate them with: ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so.2 ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so See if ping works now. Rowland
cd /usr/lib64/security rm pam_smbpass.so rm pam_winbind.so rm /lib64/libnss_wins.so* ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so.2 ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so reboot # ping google.com Segmentation fault 2016-03-23 13:39 GMT+02:00 Rowland penny <rpenny at samba.org>:> On 23/03/16 10:12, barış tombul wrote: > >> cd samba-4.4.0 >> ./configure --prefix=/usr/local/samba --fatal-errors --enable-gnutls >> --enable-debug --enable-selftest >> make >> make install >> >> >> >> >> ln -v -fs /usr/local/samba/lib/security/pam_winbind.so >> /lib64/security/pam_winbind.so >> ln -v -fs /usr/local/samba/lib/security/pam_smbpass.so >> /lib64/security/pam_smbpass.so >> ln -v -fs /usr/local/samba/lib/libnss_winbind.so.2 /lib64/ >> ln -v -fs /lib64/libnss_winbind.so.2 /lib64/libnss_winbind.so >> ln -v -fs /usr/local/samba/lib/libnss_wins.so.2 /lib64/ >> ln -v -fs /lib64/libnss_wins.so.2 /lib64/libnss_wins.so >> ln -v -fs /usr/local/samba/bin/net /usr/bin/net >> ln -v -fs /usr/local/samba/bin/smbspool /usr/lib/cups/backend/smb >> ldconfig >> >> >> > When you tried to create the link for 'pam_smbpass.so', did it not show an > error ? > It should have, as pam_smbpass has been remove from 4.4.0. > > Can you try removing the 'libnss_wins' links from /lib64 and then recreate > them with: > > ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so.2 > > ln -s /usr/local/samba/lib/libnss_wins.so.2 /lib64/libnss_wins.so > > See if ping works now. > > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >