Can't figure out how to set user, group, and permissions, for output files. #17
Replies: 5 comments 6 replies
-
When you installed docker did you follow these steps to manage docker as a non-root user? |
Beta Was this translation helpful? Give feedback.
-
I'm using docker on unraid, so I didn't think that was needed. I've just installed the docker compose manager plugin. Then copied your yaml file into it. The container finds my mp3 files and converts them to an m4b. So that part is working. But the m4b file that's outputted does not have the owner or permissions I specified in the yaml file. Do I need an .env file? I have nothing there. |
Beta Was this translation helpful? Give feedback.
-
It is similar yes. Any files output from the auto-m4b container get changed to the wrong owner and permissions. The container templates I use from unraid come setup with PUID:99, PGID:100, UMASK:002. I don't know how to do that manually or apply it to this situation. |
Beta Was this translation helpful? Give feedback.
-
I can manually enter chmod and chown after each file conversion but is there a way to automate it? Changing owner and permission that way does solve my problem but I'm trying to figure out how to automate it inside the container. |
Beta Was this translation helpful? Give feedback.
-
I took a look at this beause I didn't like this workaround. Without this specification the User-ID will be taken for the Group-ID which will not work for unraid because it's 99:100. |
Beta Was this translation helpful? Give feedback.
-
Noob here with a quick question.
I've got it setup on unraid with docker-compose. It finds my mp3 files and converts them to an m4b, but the new file it outputs has the wrong user, group, and permissions.
I need the user to be "nobody", group to be "users", and permissions 775.
I've tried editing the .yml file under the environment section.
environment:
- PUID=99
- PGID=100
- UMASK=002
I've set PUID, PGID, and UMASK, to what I need but it's not applying to the outputted files. Any help would be greatly appreciated. I feel like it's probably something simple I'm missing.
Beta Was this translation helpful? Give feedback.
All reactions