As far as I can tell it is sending netbios names wrong: REDE \\THESERVER Servidor \\THESERVER\IPC$ IPC Service (Samba Server 3.0.28) \\THESERVER\Cadeiras \\THESERVER\Partilhados \\THESERVER\Filmes \\THESERVER\DVDRW \\THESERVER\MP3 \\STOUT Samba Server 3.0.28 \\STOUT\IPC$ IPC Service (Samba Server 3.0.28) \\STOUT\Cadeiras \\STOUT\Partilhados \\STOUT\Filmes \\STOUT\DVDRW \\STOUT\MP3 stout files # smbtree WARNING: The "printer admin" option is deprecated Password: REDE \\STOUT Samba Server 3.0.28 \\STOUT\IPC$ IPC Service (Samba Server 3.0.28) \\STOUT\Cadeiras \\STOUT\Partilhados \\STOUT\Filmes \\STOUT\DVDRW \\STOUT\MP3 \\SERVER Servidor \\SERVER\IPC$ IPC Service (Servidor) \\SERVER\Downloads It started working when I forced the option "netbios = server" in the /etc/samba/smb.conf, so it would use a name different than the hostname. This on the local master. Forcing "netbios = name", with name the same as the hostname also breaks it. The server has a correct smbtree output. This causes trouble browsing with hostnames only, with IPs it works fine. It causes also a major issue with fusesmb, which I use in a media center, in a way that it lists the shares right, but when trying to enter the said share, it returns "file unavailable". Reproducible: Always Steps to Reproduce: 1.don't use netbios = name on the local master 2.shares will be duplicated on listing, in the clients, not on the server 3. Actual Results: Can't use stuff like fusesmb or accessing(and listing) shares through the hostname Expected Results: Shares should be able to be listed and accessed through the hostname and not another alias.
Just to note (I'm not a dev) that I cannot reproduce that behavior.
The server also acts as a gateway to the internet, having then dnsmasq and iptables running.
you havent posted `emerge --info` i see ...
Portage 2.1.4.4 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.6.1-r0, 2.6.22-gentoo-r8 i686) ================================================================= System uname: 2.6.22-gentoo-r8 i686 AMD Turion(tm) 64 Mobile Technology ML-30 Timestamp of tree: Wed, 28 May 2008 14:36:01 +0000 app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.5-r3, 2.4.4-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -pipe -march=i686 -mtune=athlon-xp" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=i686 -mtune=athlon-xp" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X berkdb cairo cdr cli cpudetection cracklib crypt dbus dri dvd dvdr eds emboss encode fam firefox fortran gdbm gif gpm hal iconv ipv6 isdnlog jpeg kde ldap mad midi mikmod mmx mmxext mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl tcpd truetype unicode vorbis wifi win32codecs x86 xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa sis" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Tiago, as far as I can see this bug is not distribution-specific. Have you posted this bug upstream, e.g. to https://bugzilla.samba.org/ ?
Is this still an issue with current versions? If not, has anyone created a reproducable testcase and reported it upstream? Reopen if it is still a problem.