Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#18531 - [samba] Problem resolving hostnames ('hosts: wins' in '/etc/nsswitch.conf')

Attached to Project: Arch Linux
Opened by Bruno Mazotti (bmazotti) - Tuesday, 02 March 2010, 16:28 GMT
Last edited by Andrea Scarpino (BaSh) - Thursday, 08 April 2010, 10:37 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 7
Private No

Details

Description:

I'm using the line:
hosts: files dns wins
in '/etc/nsswitch.conf' file.

I'm starting the 'samba' daemon and I've changed the file '/etc/conf.d/samba' to use this line:
SAMBA_DAEMONS=(smbd nmbd winbindd)

When I try to resolve a hostname in a terminal with some command like 'ping', 'ssh', etc, with the package 'samba-3.5.0-1' ('/lib/libnss_wins.so' ?) the terminal just outputs 'Aborted'.

I downgraded to the following packages:
pacman -U samba-3.4.6-1-i686.pkg.tar.gz smbclient-3.4.6-1-i686.pkg.tar.gz

And it started working nicely.

Reverting to the lastest version of these packages the problem comes back.

As a work around I'll be using the older version cited above.


Please ask if more information is needed.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Thursday, 08 April 2010, 10:37 GMT
Reason for closing:  Fixed
Additional comments about closing:  in samba 3.5.2-1
Comment by Bruno Mazotti (bmazotti) - Wednesday, 03 March 2010, 01:00 GMT
The duplicated bug  FS#18537  have a strace log from a ping command.
Comment by Bruno Mazotti (bmazotti) - Thursday, 11 March 2010, 22:22 GMT
Segey Tereschenko (partizan) has created an upstream bug report:
https://bugzilla.samba.org/show_bug.cgi?id=7202
Comment by Bruno Mazotti (bmazotti) - Thursday, 11 March 2010, 22:25 GMT
I've installed abs and built the lastest version of 'samba' using the following source tar:
http://us1.samba.org/samba/ftp/stable/samba-3.5.1.tar.gz
And the problem persisted with this newer version.
Comment by Jorge Ortega (stargeizer) - Wednesday, 17 March 2010, 14:18 GMT
Also this will make nautilus report a dbus error when trying to navigate a samba share in another machine. Log reports that

gvfsd-smb[2864]: segfault at c35dec79 ip b7749068 sp b67e4b60 error 5 in libsmbclient.so.0[b72e1000+5a2000]

Force a downgrade to 3.4.6 solves the ping problem and the nautilus/dbus problem (making use of windows share possible again).
Comment by Jonathan Liu (net147) - Saturday, 20 March 2010, 14:24 GMT Comment by Jonathan Liu (net147) - Saturday, 20 March 2010, 14:43 GMT Comment by Jorge Ortega (stargeizer) - Monday, 22 March 2010, 15:56 GMT
Last update to samba and smbclient blocks me to use internet or any command that alows use of internet (will produce an "Aborted" message on ping or pacman for example)

Still forcing downgrade to 3.4.6 works. (at least until a fix is available in repositories)
Comment by Jorge Ortega (stargeizer) - Thursday, 01 April 2010, 13:48 GMT
Upgrading to gnome 2.30 forcess a samba update. The samba update is still buggy.

Workaround: delete "wins" parameter in /etc/nsswitch.conf

The net will be normal again, but you can't resolve windows names anymore, so some users (mostly users/admins that need compatibility with windows machines) are screwed if they update gnome or samba).
Comment by Jonathan Liu (net147) - Thursday, 08 April 2010, 10:20 GMT
The issue is fixed in samba 3.5.2-1 in testing repository.

Loading...