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 >
On 23/03/16 12:53, barış tombul wrote:> 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 <http://google.com> > Segmentation fault >Strange, as I showed it works for me. Samba 4.4.0 is now out, do you feel up to compiling this and trying ping again ? If you do, check that you have all the packages for your OS shown here: https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs Rowland
On 23/03/16 13:05, Rowland penny wrote:> On 23/03/16 12:53, barış tombul wrote: >> 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 <http://google.com> >> Segmentation fault >> > > Strange, as I showed it works for me. Samba 4.4.0 is now out, do you > feel up to compiling this and trying ping again ? > > If you do, check that you have all the packages for your OS shown here: > > https://wiki.samba.org/index.php/Operating_system_requirements/Dependencies_-_Libraries_and_programs > > > Rowland >OK, so I setup a VM and installed Centos 7 on it, installed the packages as per the wiki and compiled 4.4.0. I then found I didn't have pam_winbind.so Compared what the wiki said to install for Centos with what I normally install for Devuan and installed the difference, recompiled again, I now had pam_winbind.so Set up Samba and joined it to the domain and everything works until you add the word 'wins' to the hosts line in /etc/nsswitch.conf. I now get this: ping -c1 google.com Segmentation fault I have disabled selinux, turned off the firewall, it doesn't matter if the Samba Deamons are running or not. All I can find that might be relevant is this: http://permalink.gmane.org/gmane.linux.debian.devel.systemd/8842 I cannot get valgrind or gdb to give any result, they both fail. I am becoming more convinced that this has nothing to do with Samba and as I normally don't use Centos, I am giving up. Rowland