Samba shared drive cannot write

I am running OpenWrt 22.03.2 on a x86_64 machine. i have attached an extra hard disk and installed Samba server to share the content into the LAN and VPN. I have created a user an i can login from MS Win 10 and Android devices to see the share. Unfortunately i do not have write access to this folder. Here is the config of


of my system:

config samba
        option workgroup 'WORKGROUP'
        option charset 'UTF-8'
        option description 'Samba on OpenWRT'
        option interface 'WG_server lan'
        option enable_extra_tuning '1'

config sambashare
        option path '/mnt/sda1'
        option read_only 'no'
        option create_mask '0666'
        option dir_mask '0777'
        option users 'atuxnull'
        option guest_ok 'no'
        option name 'SSD_on_router'

Ideally i would like to have 2 users. One with read/write access and one with read only, if possible possible to see the same drive.

What are the permissions on "/dev/sla1"?

Here are the settings for /dev/sda1

not what he asked ...

Please, log into the router, and execute this command, to show us how have been managed the permissions: "ls -la /mnt/sda1".

1 Like

ls -ld /mnt/sda1 might be interesting too.

1 Like
root@APU_orange: ~ $ ls -ld /mnt/sda1
drwxr-xr-x    3 root     root          4096 Mar 29 08:07 /mnt/sda1
root@APU_orange: ~ $

might want to change that to 777.


thank you. it works

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.