Comment on samba docker compose help ver2
BakedCatboy@lemmy.ml 1 week ago
I would suggest adding “UID” and “GID” environment variables to the container, and set them to the numeric values for user and group numbers that show in place of your name when you use “ls -an” inside of the “mount” folder (they will probably be the same number). I get the same error as you when I copy your docker-compose and try to access a folder owned by my user. When I add the UID and GID of my user id to the docker-compose (1007 for me), the error goes away.
basic_user@lemmy.world 6 days ago
Thanks for the suggestion. I tried and it still doesn’t work. I updated the google docs notes with my steps if you want to see what I did.
BakedCatboy@lemmy.ml 6 days ago
Hmm, well it doesn’t seem to be any problem with the docker compose then as best as I can tell. I picked a random ext4 flash drive and replicated your setup with the UID and GID set and it seems to work fine:
I was able to play the PXL.mp4 video from my desktop and write back the test.txt file
basic_user@lemmy.world 6 days ago
I’m CURSED I tells ya! I’ll look at the logs tomorrow. Good to know that you can get it working. Maybe I’m close then.
CmdrShepard42@lemm.ee 6 days ago
What displays when you run “id” as your user? You’ll want it to match what your inputting in the docker compose. I may have missed it but I didn’t see you identify what your personal UID and GID are in the Google doc.