I am forced to write again about this topic because after having solved the issue it is reappeared again, inexplicably.
Briefly: I have a usb disk attached to my mi mini wifi router. The disk has two partitions; the first one is ntfs (which I want to stay with for compatibility purposes), the second one is ext4. When I access both partitions via ssh, I am able to read and write without any problem.
But when I try to share the first partition via sambashare, I get read-only access.
I mount the partition via command:
mount -t ntfs-3g -o rw,uid=65534,user_id=65534 /dev/sda1 /mnt/sda1
.
Output of mount
command:
/dev/sda1 on /mnt/sda1 type fuseblk (rw,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096)
Content of /etc/config/samba
:
config samba
option name 'Lede'
option description 'Lede'
option autoshare '1'
option homes '0'
option workgroup 'WORKGROUP'
config sambashare
option read_only 'no'
option guest_ok 'no'
option path '/mnt/sda1'
option name 'part1'
Contents of /etc/samba/smb.conf
:
global]
netbios name = Lede
display charset = UTF-8
interfaces = lo br-lan
server string = Lede
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 protocol = SMB2
min receivefile size = 16384
null passwords = yes
passdb backend = smbpasswd
security = user
smb passwd file = /etc/samba/smbpasswd
use sendfile = yes
browseable = yes
writeable = yes
[part1]
path = /mnt/sda1
read only = no
guest ok = no
How can I solve this annoying issue?