Hi, Samba works just fine, thanks.
But how can I get write permission on my share?
How to get write permission?
If you use Public Share, set "Readonly" to "disabled".
Then if you don't use win explorer or konqueror you may have to set a user,password for example using an fstab entry:
//192.168.0.1/Public /mnt/net cifs username=guest,password=guest
Windows Explorer, Konqueror etc. automatically submit a standard user which will then be mapped by samba to a guest user. In this case you don't have to do anything. I don't know if macs do this to.
Kong said: If you use Public Share, set "Readonly" to "disabled". Then if you don't use win explorer or konqueror you may have to set a user,password for example using an fstab entry: //192.168.0.1/Public /mnt/net cifs username=guest,password=guest Windows Explorer, Konqueror etc. automatically submit a standard user which will then be mapped by samba to a guest user. In this case you don't have to do anything. I don't know if macs do this to.
No succes.
I think it's a windows xp problem.
When I connect using telnet I get this information:
root@WRT3500L:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /jffs type vfat (rw,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-)
root@WRT3500L:~#
Can someone help me out?
Ah okay, now I can see it, the problem is that the partition is mounted with fmask=0022,dmask=0022, therefore only root has write permissions, but samba will access as either guest user or the user you specified.
DD-WRT should mount fat partitions with umask=0000, that's the problem. Until this has been changed you could do the following:
Go to Services->NAS->FileSharing
Disable Public Share, check Use Custom Configuration, then add in Custom Configuration:
[global]
server string = 3500L
workgroup = Home
interfaces = br*
bind interfaces only = Yes
map to guest = Bad User
smb passwd file = /var/samba/smbpasswd
private dir = /var/samba
passdb backend = smbpasswd
log file = /var/smbd.log
max log size = 1000
printing = none
load printers = No
usershare allow guests = Yes
[Share]
comment = My Share
path = /jffs/
read only = No
guest ok = No
valid users = root
In User1 field add the user "root" without quotes, supply a password, now connect to your share, with user root+pass. Now samba will access as user root which has write permissions.
Hi
I've just installed the latest build on a rt-n16.
All seems ok, but I also have no write access from Windows 7.
I have Samba public enabled, read only disabled. I formatted my usb drive ext3 assuming this would give better performance(?)
My telnet mount info:
root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
devpts on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /jffs type ext3 (rw,data=ordered)
Hi DiamondView,
just verified this, it is due to the fact, that permissions on /jffs with ext3 only allow writes for root.
As a quick workaround, until it is fixed, you can do the following.
In the Webinterface under Administration->Commands enter:
chmod 777 /jffs
press "Save Startup". After a reboot you will have write access
Hi Kong
Thanks, all good now. Getting about ~5.3 MB/sec read & ~6 MB/sec write transfers from the Samba NAS on the RT-N16 with ext3 usb: how's that compare to the WRT3500?
DiamondView said: Hi Kong Thanks, all good now. Getting about ~5.3 MB/sec read & ~6 MB/sec write transfers from the Samba NAS on the RT-N16 with ext3 usb: how's that compare to the WRT3500?That's about the same I get with my WNR3500L.
I'm curious to know what USB drive you're using to get 5-6MB/sec transfer rates. I'm getting more like 832KB/sec, at least that's what windows 7 reports.
I'm using an ext3 formatted USB hard drive mounted on /jffs (firmware build 14584). Any suggestions?
I'm using a 8GB USB Stick, not a very fast one. I'll soon have a fast 2,5" drive to create a few benchmarks.
800KB/s is not good:-)
To make sure windows is right, measure the transfered time e.g. 100MB/20s->5MB/s
Don't keep the router busy -> no P2P, other high speed internet traffic
On the router disable any traffic shaping, you could also do a reset to make sure there is no strange setting from previous installs, load usb 2 module, not 1.1
Check using the builtin ftp server, via ftp you should get around 8MB/s write speed
Okay, I reset the router, turned off QoS and disabled USB 1.1 options (just leaving USB 2.0).
I was amazed to see turning QoS off/on alone increased my speed from about 800KB/sec up to 4MB/s. I guess QoS has some real issues, especially considering I supposedly had it set to only adjust WAN traffic.
From what I could tell, the QoS change was the only option that yielded a performance gain though. I wasn't previously using ProFTPD but switched it on for testing purposes. FTP was only marginally faster by about 0.3MB/sec. So at best, my transfer rates now are still only 4.3MB/sec. Even so, that's an amazing increase, thanks! Any other suggestions to attempt to tweak a little more speed out of my setup?
Hi Kong, I was just curious if you ever got that 2.5" drive for benchmarking?
I still can't seem to break the 3.8MB/sec mark myself. That's using a ext3 formatted, 7200rpm, 2.5" hard drive via USB 2.0. I'm pretty much solely talking about SMB type transfers for large files, typically streamed videos to a Boxee PC.

RSS

