macsat.com OpenWrt and ASUS WL Forum
January 08, 2009, 18:11:10 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Need help on Samba  (Read 2620 times)
0 Members and 1 Guest are viewing this topic.
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: March 05, 2007, 02:32:36 AM »

Hello,

I have mounted a USB hard drive (Fat32 format) on my WL500G Deluxe router and followed the excellent Grin Samba Tutorial from MacSat.
From my Windows XP computer I can now browse my share "SambaShare"
But it is impossible to copy files from Windows to Sambashare. The system says "specified network name is not longer available"
It is neither possible to delete or open a file on SambaShare from Windows.

Can you please help me.

Regards

Michel

Information on my configuration:
- I have used the Samba package available at : http://downloads.openwrt.org/backports/rc6/samba-server_2.0.10-2_mipsel.ipk
- I have added root as Samba user: smbpasswd -a root
- mount command says:
/dev/root on /rom type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/jffs on / type mini_fo (rw)
none on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/scsi/host0/bus0/target0/lun0/part1 on /opt type vfat (rw)

- /etc/samba/smb.conf is:
[global]
workgroup = WORKGROUP
server string = OpenWRT Samba Server
wins support = no
dns proxy = no
name resolve order = lmhosts hosts bcast
log file = /opt/log/samba/log.%m
max log size = 1000
syslog = 0
security = share
encrypt passwords = true
obey pam restrictions = yes
passwd program = /usr/bin/passwd %u
load printers = no

[SambaShare]
comment = /opt/samba
path = /opt/samba
browseable = yes
public = yes
guest ok = yes
writeable = yes
force user = root
force group = root
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #1 on: March 05, 2007, 08:52:03 AM »


As it is a FAT32 disk, permissions might be a little odd to set, so try to add this :

Code:
force user = root

to the [global] section
Logged
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #2 on: March 05, 2007, 17:41:06 PM »

Thank you macsat for your response.

But the "force user = root" is already in the [SambaShare] section.

Do I have to move it in the [global] section?


Thx
Michel
Logged
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: March 05, 2007, 20:06:43 PM »

I put "force user = root" in the [global] section.
But it still doesn't work ...

Another remark: from Windows side, when I connect to the SambaShare, Windows ask for a password.
I do not enter any password, I just do ENTER. Maybe it's the problem?


Michel
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #4 on: March 05, 2007, 21:53:32 PM »


You could try to put in your root password - just as a test.

Under all circumstances I really do advice you to consider to use ext2 or ext3 as filesytem, both for real compatibility and for performance. Last time I checked, ext2 gave me about twice the transfer-rate compared to FAT32 using OpenWrt on a ASUS WL-500G Deluxe.
Logged
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #5 on: March 05, 2007, 22:16:25 PM »

Doesn't work!  Tongue
I have also done: smbpasswd -a root with the same pwd as the root unix account
Logged
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #6 on: March 07, 2007, 22:34:39 PM »

ok, I have reformated the disk as ext2 filesystem and used the smb.conf from the macsat tutorial but...

When I try to copy a file from Windows Explorer to my SambaShare, the file is created but is empty (size = 0)
and the system still says "specified network name is not longer available"


MacSat? please!




workgroup = WORKGROUP
server string = OpenWRT Samba Server
wins support = no
dns proxy = no
name resolve order = lmhosts hosts bcast
log file = /opt/var/log/samba/log.%m
max log size = 1000
syslog = 0
security = share
encrypt passwords = true
obey pam restrictions = yes
guest account = nobody
passwd program = /usr/bin/passwd %u
load printers = no

[SambaShare]
comment = /opt/samba
path = /opt/samba
browseable = yes
public = yes
guest ok = yes
writeable = yes


« Last Edit: March 08, 2007, 10:18:58 AM by michcfr » Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #7 on: March 08, 2007, 11:42:40 AM »


Make sure that samba folder is writeable to the user samba uses. Probably "nobody".

You can do this by making the folder "world writable" :
Code:
chmod -R 777 /opt/samba
Logged
michcfr
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #8 on: March 09, 2007, 00:06:29 AM »

I already did it
I do it again but it doesn't work  Huh

The strange thing is when I try to copy a file from the SambaShare to Windows, i've got the same error message.


I'm desperate
Logged
manoooel
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #9 on: April 02, 2007, 14:14:28 PM »

Hi,

I'm familiar with your problem. I also nearly desperated, but I found a solution:

Don't use the samba-server of the rc6 backports! (# mv samba-server /dev/null/  Tongue)
Use the samba package of the rc5 backports instead. That's all.

It works here on the WL-500g Deluxe and Premium with the newest Freifunk-Image wich is based on the OpenWRT rc6.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.953 seconds with 24 queries.