Permission issue while using samba4

my samba is running as root but when i try to delete a file with windows from samba share directory it shows error

[root@NETGEAR_NIGHTHAWK_R7800:06:18 PM ~] # ps | grep smbd
10888 root     24700 S    /usr/sbin/smbd -F
10913 root     23304 S    {smbd-notifyd} /usr/sbin/smbd -F
10914 root     23296 S    {smbd-cleanupd} /usr/sbin/smbd -F
10915 root     24980 S    {smbd[192.168.88} /usr/sbin/smbd -F
11086 root      1144 S    grep smbd
[root@NETGEAR_NIGHTHAWK_R7800:06:18 PM ~] #

Screenshot 2025-01-04 181924

Check permissions on folder, mount point folder, file, and share conf in samba ?

No point in posting ps, since your samba's obviously working.

here it is

config samba
        option workgroup 'WORKGROUP'
        option charset 'UTF-8'
        option description 'Samba on OpenWRT'
        option autoshare '1'

config sambashare
        option name 'hdd'
        option path '/mnt/sdb1'
        option read_only 'yes'
        option guest_ok 'yes'
        option create_mask '0666'
        option dir_mask '0777'

Ok, so that's 1 out of 4...

You have configured the share as "read only", doesn't that mean that users cannot create / change / delete files?

1 Like

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