OpenWrt Forum Archive

Topic: Samba share problem

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

I am experiencing some problems with my samba shares on wl-500GP. I used the standard smb.conf file that came with kamikaze 7.09, with minimal changes to the config to overcome first permission problems I ran upon. That is I changed guest account to root.

Everything works like its supposed to when share is accessed from Windows, but from Linux there are various problems. I am currently using Fedora 9, and when share is mounted by gnome (gvfs) I cant even see the files on share. I can create a file though, but the moment I refresh list it dissapears (although its sucessfuly created on the filesystem).
Ok, I thought that it could be some Gnome things so I went to smbclient. However, it displays uncomplete names of files, with last letter missing, although it works when I add the missing letter. (for example file named "test" would be diplayed as "tes" but "rm test" would work)
Mounting with mount.cifs (tried various options, setting uid, gid etc) diplays files correctly, I can delete files (cant delete dirs that are not empty, not even from windows), but I cant access files (read/write) on mounted dir, even as root. I get permission denied, even though permissions look perfectly fine to me smile

I'd really appreciate if someone could share his experiences with samba on kamikaze and share his smb.conf.
Perhaps someone had better luck with optware samba3 (though it looks rather heavy)?

smb.conf
-----------

[global]
syslog = 0
syslog only = yes
workgroup = OpenWrt
server string = OpenWrt Samba Server
security = share
encrypt passwords = yes
guest account = root
local master = yes
name resolve order = lmhosts hosts bcast

[download]
comment = download
path = /opt/download
browseable = yes
writeable = yes
public = yes

(Last edited by PinkBunny on 1 Jul 2008, 13:13)

Hi,
if everything works on Windows but not on your Linux, I'd say that there is something with your Fedora client. I actually have the same config file as you and I'm mounting it with the following entry in /etc/fstab:

# Samba
//192.168.2.1/usb        /extra/         smbfs       uid=myuser,guest    0       0

I'm on Debian though

(Last edited by Tex-Twil on 1 Jul 2008, 21:06)

Yeah, not really sure with fedora. Your settings look fine to me save using root as the guest account. I simply fiddled with my passwd and smbpasswd files in the /etc and /etc/samba directories respectively to get my shares functioning. As this was for an NSLU2 with an old default partition/username setup from the original firmware, I needed to get it functional without wiping the drive(s) and starting over.

The discussion might have continued from here.