Hello,
I am trying to set up samba share on my asus n13u b1 running 18.06.1. Everything is ok and the drive is mounted to /mnt/sdb1/ i can access it from windows, but the problem is, i only have Read only access.
This is my samba config. I have found multiple solutions online but couldn't solve this issue.
[global]
netbios name = OpenWrt
display charset = UTF-8
interfaces = lo br-lan
server string = OpenWrt
unix charset = UTF-8
workgroup = WORKGROUP
bind interfaces only = yes
deadtime = 30
enable core files = no
invalid users = root
local master = no
map to guest = Bad User
max protocol = SMB2
min receivefile size = 16384
null passwords = yes
passdb backend = smbpasswd
security = user
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes
[homes]
comment = Home Directories
browsable = no
read only = no
create mode = 0750
[sdb1]
path = /mnt/sdb1
read only = no
guest ok = yes
Yes, i can modify the files on it when it's connected directly to OS(windows/ubuntu) but not from the router, always gives out permission error. The formatting is fat32.
Several issues here, 18.06.1 is unsupported (ie you're on your own) and it's going to unusable in practice.
If you can get your ancient version of Samba to work it's going to unbearably slow like 3-4mbyte/s using ext3/4 and roughly half of that best using ntfs. You'll also see network latency and throughout issues when accessing your Samba share. Just get something that's more suitable...
I have also tried this with 18.06.7 and 19.07.5. having the same issue in them. Read only access. My current build 18.06.1 seems to be running samba 3, which i think is enough for me for small transfers. The point is why am i having the read only access?
ntfs-3g is installed.
I am not using guest access anymore, although guess access should provide RW permissions but for some reason it doesn't.
It's a temporary fix to use root account to gain RW permissions, because if i use/create any other account, it's goes back to Read only mode. Unless somebody knows a better way.
I may have mistyped that line. Whenever usb is removed from router the mount point differs between sda1 and sda2 or vice-versa... I created directory mkdir then applied permissions... chmod -R 777 /mnt/sda1 or sdb2/dir_name...
suppose dir name hello1
mkdir hello1
before chmod drwxr-xr-x 2 root root 4096 Feb 26 10:59 hello1
after chmod
chmod -R 777 hello1 drwxr-xr-x 2 root root 4096 Feb 26 10:59 hello1