OpenWrt Forum Archive

Topic: Samba acces from windows fails

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

Hi,

This is my first post... I'm sick now of configuring simplest SAMBA service. I've spent 5 hours to get some infos about that (searching forum and my own trys).
Service is installed and running. Ports are open (139 and 445), host with router ip added to main config (/etc/hosts), config is changed by guy, who know linux quite well, looks like this

[global]
syslog = 0
syslog only = yes
workgroup = OpenWrt
server string = SambaServer
security = share
encrypt passwords = no
guest account = sirfalo
local master = yes
name resolve order = lmhosts hosts bcast
interfaces = 192.168.1.0/24 127.0.0.1
bind interfaces only = yes
create mask = 0777
directory mask = 0777
host allow = 192.168.1.0/24 127.0.0.1
os level = 65
# time server = yes
# dos filetimes = yes
# fake directory create times = yes
# dos filetime resolution = yes
character set = ISO8859-2
client code page = 852

[samba]
comment = /samba
path = /mnt/part2
browseable = yes
public = yes
writeable = yes
guest ok = yes


There is only one problem: when I'm trying to access from windows (using \\192.168.1.1) there is msg (translation from my language)

No Internet provider didn't accept network path

What is wrong?

Thank you for help. Unfortunatelly, this didn't help hmm
Entire process is working when I'm using "PS" command, hosts are OK, firewall opened, but still... error hmm

Hi,
maybe you'll try a more simple smb.conf as a start, i.E.

root@OpenWrt:~# cat /etc/samba/smb.conf
[global]
syslog = 0
syslog only = yes
workgroup = ARBEITSGRUPPE
server string = OpenWrt Samba Server
security = share
encrypt passwords = yes
guest account = nobody
local master = yes
name resolve order = lmhosts hosts bcast

[tmp]
comment = /tmp
path = /tmp
browseable = yes
public = yes
writeable = no

[mp3]
comment = mp3
path = /mnt/usbdrive/mp3
browseable = yes
public = yes
writeable = yes

[packages]
comment = packages
path = /mnt/usbdrive/packages
browseable = yes
public = yes
writeable = yes

This one works fine for me!

Hope this helps somehow ......

J.

(Last edited by jever on 18 Feb 2008, 22:50)

Thank you for help, but... it didn't help. I belive that there is something else what blocks access... sad

Rootcause found. This was windows related problem, not samba server on router. Strange is that with the same windows and orginal router software file sharing worked well.

The discussion might have continued from here.