dperson / samba

Samba docker container
GNU Affero General Public License v3.0
1.54k stars 514 forks source link

Cannot delete files in all shares #364

Open Aragur opened 3 years ago

Aragur commented 3 years ago

Hey after upgrading to the latest version a problem occurred.
I cannot delete any files. On Windows the file get's deleted but reappears after a refresh. Also weird is that I can delete directories but only if they have no files inside, also I can rename and modify the file too.

I tried anything. Added the user as admin (what should this do?). Reapplied the permissions, checked everything. (Trash-Can is also disabled)

https://user-images.githubusercontent.com/11004008/107713642-fb95ee00-6ccb-11eb-89b0-8c412554e5bd.mp4

Aragur commented 3 years ago

I can confirm that this worked on a2cda42fb056. (Just retagged and tested it - delete works fine)

This is smbd version 4.12.7

cybermcm commented 3 years ago

Same here, current ARM docker image. File edit and creation is working, but I'm not able to delete files.

vadimstasiev commented 3 years ago

yep, same problem here

ciB89 commented 3 years ago

I was thinking I screwed up my mount somehow, was trying to fix this for hours... why is this failing?

zhejunliux commented 3 years ago

I can delete

ciB89 commented 3 years ago

I can delete

I can delete folders, but not files. On Windows the files just reappear, linux says permission denied. On the host machine I can ofc delete the files.

ciB89 commented 3 years ago

Is there any news on this?

cybermcm commented 3 years ago

There is a new image on hub.docker.com with the tag armhf. Using it with a RPI, seems to work again. Although no commits here on github... Samba version 4.13.7

sunnyseaman commented 3 years ago

disable the vfs option like this:

vfs objects = catia...

QGB commented 2 years ago
docker run -it -p 139:139 -p 445:445 -v /:/all dperson/samba -g "force user=root" -g "force group=root" -s "smb;/all;yes;no;yes" -s "qgb;/all/home/qgb;yes;no;yes"
emilwojcik93 commented 2 months ago

[Here is an solution for that: https://superuser.com/a/1649058

you need to remove streams_xattr in vfs objects by rewrite global parameter:

 -g "vfs objects = catia fruit recycle"

](https://github.com/dperson/samba/issues/422#issuecomment-2323300365)