last official patch of Samba made it no more working

This is the smb.conf that was working till yesterday

[global]
        workgroup = WORKGROUP
        server string = Acer2-Samba-Server
        passdb backend = tdbsam
        printing = cups
        printcap name = cups
        printcap cache time = 750
        cups options = raw
        map to guest = Bad User
        logon path = \\%L\profiles\.msprofile
        logon home = \\%L\%U\.9xprofile
        logon drive = P:
        usershare allow guests = Yes
        username = robber
        add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
        domain logons = No
        domain master = No
        netbios name = ACER2LINUX
        local master = No
        security = user
       wins support = Yes 
        hosts allow = 192.168.1.0/255.255.255.0, 127.0.0.1
        hosts deny = ALL
        ldap suffix =
        wins server =

now trying to list the shares using the smbclient I got the following

smbclient -d3 --list=acer2linux
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
WARNING: The "username" option is deprecated
added interface eth0 ip=fe80::21f:16ff:fe97:e1ae%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=fe80::222:fbff:fe3c:5114%wlan0 bcast=fe80::ffff:ffff:ffff:ffff%wlan0 netmask=ffff:ffff:ffff:ffff::
added interface wlan0 ip=192.168.1.88 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 3.6.3-112.1-2788-SUSE-SL11.4-x86_64).
Enter robber's password: 
tdb(/var/lib/samba/gencache.tdb): tdb_open_ex: could not open file /var/lib/samba/gencache.tdb: Permission denied
resolve_lmhosts: Attempting lmhosts lookup for name acer2linux<0x20>
resolve_lmhosts: Attempting lmhosts lookup for name acer2linux<0x20>
resolve_wins: Attempting wins lookup for name acer2linux<0x20>
resolve_wins: using WINS server 127.0.0.1 and tag '*'
resolve_hosts: Attempting host lookup for name acer2linux<0x20>
resolve_hosts: getaddrinfo failed for name acer2linux [Name or service not known]
name_resolve_bcast: Attempting broadcast lookup for name acer2linux<0x20>
Connection to acer2linux failed (Error NT_STATUS_BAD_NETWORK_NAME)

the (Error NT_STATUS_BAD_NETWORK_NAME) is now eliminated using this information

2010 February 05

but still the windows machines aren’t to browse the linux server

The same problem here. I have installed Samba server and client 3.6.3 on OpenSuse 11.4 32 bit. After the upgrade the Samba services are running, but I cannot access my shares using a Windows client.
I went back to 3.5.7 which is working fine.

would you “share”:wink: how to downgrade to 3.5.7, using YAST?

Downgrading is easy. Start Yast2, Software Management and search for “samba”.
In the list on the right you will see all installed samba packages and their version numbers.

Select a package and click on the “Versions” tab in the section below the package list.
You can now select an older version.
Do this for all the packages which have been updated.

Click the ‘Accept’ button and downgrade will start.

I downgrade to 3.5.7 following your advise. Samba come back to work fine.
On-line update requested to upgrade again to 3.6.3 I refused.

Should we report a bug or there is something in this configuration of the server that is no “more recommended” and have to be changed?

Now with the following [global] “stanza”


[global]
	workgroup = WORKGROUP
	server string = Acer2-Samba-Server
	passdb backend = tdbsam
	printing = cups
	printcap name = cups
	printcap cache time = 750
	cups options = raw
	map to guest = Bad User
	logon path = \\%L\profiles\.msprofile
	logon home = \\%L\%U\.9xprofile
	logon drive = P:
	usershare allow guests = Yes
	username = robber
	add machine script = /usr/sbin/useradd  -c Machine -d /var/lib/nobody -s /bin/false %m$
	domain logons = No
	domain master = No
	netbios name = ACER2LINUX
	name resolve order = bcast lmhosts wins host
	local master = Yes
#	preferred master = Yes 
	os level = 65
	security = user
	wins support = Yes 
	hosts allow = 192.168.1.0/255.255.255.0, 127.0.0.1
	hosts deny = ALL
	ldap suffix = 
#	wins server = 

where bcast is moved in first position and the “preferred master” is commented, my win network works fine. With 3.6.3 I HAD to add lmhosts file on all windows machine to make the network working. In this configuration no.

This configuration is helpful because changing the win network (steel ruled by a dhcp) the share are still available on the new network out of the box.

The smbclient give this output

 smbclient -d3 --list=acer2linux
lp_load_ex: refreshing parameters
Initialising global parameters
rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)
params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
Processing section "[global]"
added interface eth0 ip=fe80::21f:16ff:fe97:e1ae%eth0 bcast=fe80::ffff:ffff:ffff:ffff%eth0 netmask=ffff:ffff:ffff:ffff::
added interface eth0 ip=192.168.1.38 bcast=192.168.1.255 netmask=255.255.255.0
Client started (version 3.5.7-3.5.1-2573-SUSE-SL11.4-x86_64).
Enter robber's password: 
tdb(unnamed): tdb_open_ex: could not open file /var/lib/samba/gencache.tdb: Permission denied
Connecting to 192.168.1.38 at port 445
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-x86_64]

	Sharename       Type      Comment
	---------       ----      -------
	homes           Disk      Home Directories
	profiles        Disk      Network Profiles Service
	users           Disk      All users
	groups          Disk      All groups
	print$          Disk      Printer Drivers
	Offshore        Disk      Home Offshore
	doc             Disk      Documents Acer
	IPC$            IPC       IPC Service (Acer2-Samba-Server)
	Officejet_4500_G510n-z_fax Printer   Officejet_4500_G510n-z_fax
	Officejet_4500_G510n-z Printer   Officejet_4500_G510n-z
	robber          Disk      Home Directories
Connecting to 192.168.1.38 at port 139
Doing spnego session setup (blob length=58)
got OID=1.3.6.1.4.1.311.2.2.10
got principal=NONE
Got challenge flags:
Got NTLMSSP neg_flags=0x608a8215
NTLMSSP: Set final flags:
Got NTLMSSP neg_flags=0x60088215
NTLMSSP Sign/Seal - Initialising with flags:
Got NTLMSSP neg_flags=0x60088215
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.7-3.5.1-2573-SUSE-SL11.4-x86_64]

	Server               Comment
	---------            -------
	ACER2LINUX           Acer2-Samba-Server
	ACER2WIN             
	VBOXXP               Phenom4 Virtual Box

	Workgroup            Master
	---------            -------
	WORKGROUP            ACER2LINUX

On 2012-04-21 07:36, roberto60 wrote:
> Should we report a bug or

Yes you should. All of you having the problem in the same report.
If a configuration change is needed, they should have documented it.


Cheers / Saludos,

Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)

Just for reference: Roberto reported this as https://bugzilla.novell.com/show_bug.cgi?id=758426