• 1 Post
  • 269 Comments
Joined 2 years ago
cake
Cake day: July 2nd, 2023

help-circle




  • foggy@lemmy.worldtoSelfhosted@lemmy.worldsamba docker compose help
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 days ago

    Okay, the permission error is almost certainly because the Samba process inside the container doesn’t have the right Linux permissions for the host directory /mnt/my_ext_hdd/my_dir/my_subdir.

    On your server running docker, find the numeric UID and GID for that directory: ls -ln /mnt/my_ext_hdd/my_dir/my_subdir

    you likely need to set PUID=<uid_from_step_1> and PGID=<gid_from_step_1> in the environment: section of your docker-compose.yml file for the Samba service.

    Recreate the container (docker compose up -d --force-recreate).

    WARNING: This assumes you are only accessing Samba from within your secure local network. Never expose Samba directly to the internet. Doing so is a major security risk and makes you a target for attacks.


  • You’re running into that permission error because of how Docker handles file permissions between the host and the container. It’s by design for security reasons. The user inside the container likely doesn’t have access to the mounted directory unless the UID and GID match what’s on the host. You can work around it, but it’s locked down intentionally.

    Also, what’s the use case here? What do you need file sharing via Samba in a Docker container for? If it’s just about moving files in and out, docker cp or docker exec -it container /bin/bash might be easier.




  • I’ve been posting and reposting my little “Eggsecution” short story everywhere I see eggs come up in politics.

    I’m hoping the egg economy goes tits up, we have the great American egg famine, and then once rid of the impending bird flu pandemic, egg economy goes the other way, and the masses just toss Donnie and Elmo into a concrete pit and pelt the. with eggs until they’re drowning in broke shells and egg yolk.

    “Eggs. Eggs. Eggs.”




  • So, this question is very difficult to answer. I don’t want you to be discouraged though.

    I can’t answer you because I don’t know your goals. Since we’re in /c/selfhosted, I assume you’re experimenting with some self-hosted setups, which is awesome! But what exactly are you hoping to do with OpenWRT? And what’s the plan for the switch? Are you aiming for better network control, VLANs, firewall rules, or are you just looking to have network area storage?

    If you can share more about what you’re trying to accomplish, folks here will be much better equipped to help you figure out your next steps.




  • Idk I’ve thought about it and it’s like, if time is created by the passage into the event horizon and it’s an artifact of the n-dimension universe it can both imply that this n-dimension universe doesn’t have “time” as we know it and our experience of it is, again, artifactual. However, the “movement” of this universe toward a n-dimension black hole kind of implies time, at least in the sense that we understand it (physical state changes of matter. It was there, now it’s here! How’d it happen? Time!)

    So… “Yes” but I would wager if my stoner theory holds gravity (pun intended) that whatever “time” exists in a parent n-dimension universe is not the same as time as we understand it? But maybe it is! Idk. Someone ask Neil degrasse Tyson why I’m wrong. And dont let him fool you that my model wouldn’t account for red and blue shifts as our little matter-islands shrink and “accelerate away” from one another. It do! 🙂

    Also fun to ponder with my silly stoner model here is that… Well… There is a supermassive black hole at the center of most galaxies… Like it’s some sort of iterative and exponentiating recursive process? 😵‍💫


  • I’ve kinda thought that were some n-dimension universe getting sucked into an n-dimension black hole, and what happens as that universe crosses the event horizon is the big bang, the arrow of time. And all of the matter and forces that have them appearing to interact is just some beautiful n-dimension spaghettification.

    The universe isn’t expanding; all mafter within it is shrinking, being crushed. all matter appears to be accelerating further and further away because, well, it is. From our perspective.

    Think of our whole universe as the most epic allegory of the cave possible.

    I’ll go back to ripping my bong now.