OpenWrt Forum Archive

Topic: Samba keeps asking for a password

The content of this topic has been archived on 19 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there!

I'm using samba to allow people on the network here to store their files on a central location. But I have some troubles running samba on OpenWRT.

I installed this package:

root@Router:~$ ipkg list_installed | grep samba
samba-server - 2.0.10-2 -

And this is my smb.conf:

[global]
 syslog = 0
 syslog only = yes
 workgroup = MSHOME
 server string =
 security = share
 encrypt passwords = yes
 guest account = harry
 local master = yes
 name resolve order = lmhosts hosts bcast
 log file = /tmp/smb.log

[Muziek]
 path = /mnt/disc0_1/data/Muziek
 browseable = yes
 public = yes
 writeable = yes

[Video]
 path = /mnt/disc0_1/data/Video
 browseable = yes
 public = yes
 writeable = yes

[Torrent]
 path = /mnt/disc0_1/data/Torrent
 browseable = yes
 public = yes
 writeable = yes

[Troep]
 path = /mnt/disc0_1/data/Troep
 browseable = yes
 public = yes
 writeable = yes

I'm using Windows XP Professional and Ubuntu 7.10 clients. In windows there is asked for a password sometimes when i try to connect to the router, and sometimes it's not asked.

In Ubuntu I cannot list the network at all.

Does anyone know what's wrong with my smb.conf?
The same smb.conf was also running on Oleg's firmware without trouble.

PS: I have the same problems when I use "guest account = nobody".

(Last edited by wouzs on 3 Nov 2007, 14:14)

Already got the clue, when installing samba samba was complaining about the fact that it was impossible to resolve it's own hostname, zo I added "Router" to my /etc/hosts file as 127.0.0.1, not realising that dnsmasq was configured with the "expand-hosts" option. So every DNS lookup to Router pointed to 127.0.0.1.

The clients got a little confused. Pointed Router to 192.168.1.1 solved all the trouble.

The discussion might have continued from here.