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

Allow user and group mapping #1237

Open
3 tasks done
ghost opened this issue Dec 6, 2019 · 0 comments
Open
3 tasks done

Allow user and group mapping #1237

ghost opened this issue Dec 6, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 6, 2019

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Problem Description

I'm running the AdguardHome docker image, with the conf and work dirs mapped to local folders. Adguard creates files within these folders as root. I would like the option to map to another user, the way linuxserver.io images do: https://docs.linuxserver.io/general/understanding-puid-and-pgid

Proposed Solution

Allow for PUID and PGID environment variables to be set, so that files written by AdguardHome will map to the user I specify, so that I don't run into permission issues.

Alternatives Considered

Another option would be for me to use docker's built in --user flag:

Screenshot 2019-12-06 at 10 51 58

https://docs.docker.com/engine/reference/run/

But for that to work the processes within the container would have to be able to cope with running as a different user, and not as root. I'm not sure if that's currently the case, and did not see anything in the documentation about that.

edit: By the way, my compliments on the project, really nice to use and works like a charm!

adguard pushed a commit that referenced this issue Jul 6, 2021
Updates #3315.

Squashed commit of the following:

commit f91b979
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Tue Jul 6 13:48:29 2021 +0300

    all: upd dnsproxy
heyxkhoa pushed a commit to heyxkhoa/AdGuardHome that referenced this issue Mar 20, 2023
Updates AdguardTeam#3315.

Squashed commit of the following:

commit f91b979
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Tue Jul 6 13:48:29 2021 +0300

    all: upd dnsproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant