You are not logged in.

#1 2020-10-16 10:28:54

cryptoluks
Member
Registered: 2015-04-26
Posts: 15

Samba Guest Permissions - Can Not Delete Files

Hi,

I am unable to delete files mounted between two Arch Linux machines (upgraded both just now) as a guest user. Everything else works (create file, edit file, move file to other location on share, rename file, delete folder). But I am unable to delete files. When trying to move a file to e. g. /tmp, it gets duplicated but not removed on the source. There is no error when trying to delete a file, it just stays there like nothing happend..

This setup used to work including deletion as a guest user. I am unsure when exactly it broke..

When using the share with a user, everything works as expected.

This is the relevant snipped of my smb.conf

[global]
        map to guest = Bad User
        idmap config * : backend = tdb
        mangled names = no


[media]
        create mask = 0644
        force user = mediauser
        guest ok = Yes
        path = /zfspool/media
        read only = No

I already played around with some settings and also moved the share off the zfs pool to my btrfs root, but no success, the behavior is the same.

Thanks for any ideas :-)

edit:

this is how I mount the share for testing:

mount -t cifs -o rw,guest //<server>/media /media

edit2:

okay when settings 777 permissions on the media folder on the server, deleting works. But I never had these permissions set at the time it worked with guest. Weird.. In my logic, the guest user should have all permissions of "mediauser" because of the force user setting, therefore also be able to delete files. Instead, the guest user seems to map to another user, therefore the o-rwx settings enables deletion... Hm..

Last edited by cryptoluks (2020-10-16 10:51:53)

Offline

Board footer

Powered by FluxBB