dogeorg / dogeboxd

Dogebox system manager service
MIT License
1 stars 0 forks source link

chown pup storage folders after creation to allow writing #26

Closed SomeoneWeird closed 1 month ago

SomeoneWeird commented 1 month ago

Because of the way bind mounts + uids work, and because we're running service as not-root inside the containers, they currently don't have permission to write to /storage, which we want.

This sets an explicit uid:gid of 420:69 so that we can chown the storage folder on the host to this before starting a pup.

The whole setuid thing is getting gnarly, I will refactor so it's a single binary with sub-commands on Monday