Replies: 6 comments 11 replies
-
I'm not sure I follow (I'm no Docker expert!). But when I hear things like "user X gets access to all files", then some alarms start ringing in my head! Would that impact files outside the container? In this case this would be a security issue, much more than cosmetic. And I'd be all for fixing it. But I'm a little confused with groups inside and outside the container... |
Beta Was this translation helpful? Give feedback.
-
This seems closely related to the issue #16 which is still outstanding after four years! It's also the reason I came looking here because the Docker container seems to be useless without this fix. (I'm not sure how anyone else is using it unless they're working around it somehow?) In principle, I agree with @osnieh's suggestion. I don't understand why I've never submitted a pull request before, but I'm willing to learn if I can help to fix this 🙂 |
Beta Was this translation helpful? Give feedback.
-
These are two issues:
My suggestions is:
And maybe we can rename squeezeboxserver to lyrion :-) |
Beta Was this translation helpful? Give feedback.
-
This would look like this: https://github.com/osnieh/slimserver-platforms/tree/Docker-change-permissions-of-user-running-the-server |
Beta Was this translation helpful? Give feedback.
-
Now I have implemented the minimum change, that solves this issue (2 lines in @smilerish : My build looks good. Could you please also do a test with this version. |
Beta Was this translation helpful? Give feedback.
-
Hello @michaelherger, @smilerish suggested to collect ideas for the docker image. BR, Oliver |
Beta Was this translation helpful? Give feedback.
-
I have a suggestion for a more or less cosmetic change for the docker image:
Dockerfile
the group of the user 'squeezeboxserver' is set to $PGID, but later in the chown command the group 'nogroup' is used.start-container.sh
the commandgroupmod -o -g "$PGID" nogroup
has the side effect, that also the user 'nobody' is modified and gets access to all files with the group $PGID.On the other hand, the user 'squeezeboxserver' still has group 100 (set in Dockerfile) as standard group, because this will not be changed by the startscript.
I think it would be cleaner to use the group 'squeezeboxserver' (that is impicit created in Dockerfile by the command useradd) instead of the the group 'nogroup'.
Is this a good idea? Then a will create a pull request. otherwise I won't do it.
Beta Was this translation helpful? Give feedback.
All reactions