Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permissions fix - pgid/puid #64

Open
cbytestech opened this issue Jun 21, 2021 · 0 comments
Open

Permissions fix - pgid/puid #64

cbytestech opened this issue Jun 21, 2021 · 0 comments

Comments

@cbytestech
Copy link

cbytestech commented Jun 21, 2021

So where it mentions..

Note: You may need to chown -R $USER:$USER /path/to/root/directory so Sonarr and the rest of the apps have the proper permissions to modify and move around files. This Docker image of Sonarr uses an internal user account inside the container called abc some you may have to set this user as owner of the directory where it will place the media files after download. This note also applies for Radarr.

I think I finally get what its saying?

in the .env file it specifies the user in charge of these will be puid and pgid of 1000

# UNIX PUID and PGID, find with: id $USER
PUID=1000
PGID=1000

in order to find your puid/pgid you will use the command

id yourUsername

This returns the results..
uid=1000(username)` gid=1000(username) groups=1000(username), 998(docker)
or like in my original trial...
uid=27(otherusername) gid=27(otherusername) groups=27(otherusername),998(docker)

the puid and pgid need to match whatever user you are trying to run these as.
I set mine to match root as its a VM anyway..

  1. Open the .env file
  2. Change puid and pgid value to match the proper user
  3. Restart Docker containers
docker-compose down
docker-compose up -d

it now allows in deluge to set the autoadd where before it was stating I(or maybe it) did not have read/write permissions.
who knows what else this will resolve.
Hope this helps further explain this to someone struggling.

Disclaimer: If I'm incorrect or even just partially, please let me know. going on my 3rd try installing from the beginning.

thanks to..
https://www.reddit.com/r/docker/comments/e2ia04/permissions_with_wordpress_bind_volume/
https://hub.docker.com/r/linuxserver/plex
https://docs.linuxserver.io/general/understanding-puid-and-pgid
https://forum.openmediavault.org/index.php?thread/27226-docker-containers-runs-as-root-ignores-puid-pgid-setting/

@cbytestech cbytestech changed the title Permissions fix Permissions fix - pgid/puid Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant