-
-
Notifications
You must be signed in to change notification settings - Fork 201
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
Wrong permissions/uid? #974
Comments
uid is 102 but gid is 82 (www-data). Primary group of nginx user indeed is 103, but secondary group is 82 (www-data).
|
The docs list the UID as 101, so they're wrong? https://github.com/jokob-sk/NetAlertX/blob/main/docs/FILE_PERMISSIONS.md |
Ah I see, yeah that looks wrong. |
Hey, let me know what are the correct values an I will update the docs (how teh table should look like). Is it like this?
|
Also, @vladaurosh do you think it makes sense to revisit how permissions are set up with these issues coming up pretty frequently? just an idea |
Yes, I'll take a look in next couple of days. Basically, uid and gid of nginx:www-data are set by nginx package, so I'll see which files need uid:gid changed to be able to set custom uid:gid. |
I was just looking at nginx pre-install script at it does set www-data to 82 but doesn't set specific uid and gid for nginx user, which was my initial assumption. And did a quick test, got 100 as uid and 101 as gid. :D |
@vladaurosh - this joke unfortunately escapes me 😅 - I trust you 100% with all things permissions related |
Thinking about this now, I guess the docs were ok, but in latest version, during the image build, and installation of nginx package, user got different uid then it had previously. |
Hi, With jokobsk/netalertx:latest and docker-compose I now have the problem that device list is no longer loading, many netalertx | setpgid: Operation not permitted errors spamming the log, and the local The config and db volume folders have been changed to user pollinate, which has 102 on my host system. Before they belonged to messagebus, which is 101 on my host. Maybe related to this issue? |
Is there an existing issue for this?
The issue occurs in the following browsers. Select at least 2.
Current Behavior
I was seeing permission errors after following https://github.com/jokob-sk/NetAlertX/blob/main/docs/FILE_PERMISSIONS.md and chowning all my data to uid 101 on my host. Looking at the container's /etc/passwd, I see this:
nginx:x:102:103:nginx:/var/lib/nginx:/sbin/nologin
... which seems to indicate NetAlertX is running under uid 102, and not 101 as documented.
Expected Behavior
I was expecting NetAlertX to run under uid 101 as documented.
Steps To Reproduce
Migrate from Pi-Alert to NetAlertX with docker-compose.
app.conf
docker-compose.yml
What installation are you running?
Production (netalertx)
app.log
No response
Debug enabled
The text was updated successfully, but these errors were encountered: