Comparison is being done on other permissions, triggering a false warning.
There is a small typo/error in /root/etc/cont-init.d/40-gid-video#L16: cut is being used in the range 8-9 which are the rw permissions for other, to look at rw permissions for group it should instead use range 5-6.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...
-------------------------------------
_ ()
| | ___ _ __
| | / __| | | / \
| | \__ \ | | | () |
|_| |___/ |_| \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Jellyfin: https://opencollective.com/jellyfin
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid: 1001
User gid: 1000
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 40-gid-video: executing...
**** The device /dev/dri/renderD128 does not have group read/write permissions, which might prevent hardware transcode from functioning correctly. To fix it, you can run the following on your docker host: ****
sudo chmod g+rw /dev/dri/renderD128
**** The device /dev/dri/card0 does not have group read/write permissions, which might prevent hardware transcode from functioning correctly. To fix it, you can run the following on your docker host: ****
sudo chmod g+rw /dev/dri/card0
[cont-init.d] 40-gid-video: exited 0.
<snipped>
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
name: Bug report about: Checking wrong owner's permissions
Expected Behavior
Comparison should be done on group permissions.
Current Behavior
Comparison is being done on other permissions, triggering a false warning.
There is a small typo/error in /root/etc/cont-init.d/40-gid-video#L16:
cut
is being used in the range 8-9 which are the rw permissions for other, to look at rw permissions for group it should instead use range 5-6.Steps to Reproduce
Environment
OS: Debian 10 (Buster) CPU architecture: x86_64 How docker service was installed: composer on portainer using ghcr.io/linuxserver/jellyfin
Command used to create docker container (run/create/compose/screenshot)
Docker logs
On host:
On instance: