recursively set ownership on /var/lib/kodi/ to allow any uid/gid

This commit is contained in:
graysky 2020-01-06 15:47:47 -05:00
parent 012ef7b5af
commit d2cb656955
5 changed files with 16 additions and 13 deletions

View File

@ -12,8 +12,8 @@ Users of Arch ARM should NOT use this method as the distro package provides anal
Users of other distros should install the following files:
* `init/kodi.service` and `init/kodi-gbm.service` to `/usr/lib/systemd/system`
* `sysusers.conf` to `/usr/lib/sysusers.d`, then run `systemd-sysusers`
* `tmpfiles.conf` to `/usr/lib/tmpfiles.d`, then run `systemd-tmpfiles --create`
* `init/sysusers.conf` to `/usr/lib/sysusers.d`, then run `systemd-sysusers`
* `init/tmpfiles.conf` to `/usr/lib/tmpfiles.d`, then run `systemd-tmpfiles --create`
Note that the kodi user's home directory is `/var/lib/kodi/` in this example, NOT `/home/kodi/` like a regular user.

11
init/sysusers.conf Normal file
View File

@ -0,0 +1,11 @@
# override these settings by copying this to /etc/sysusers.d/ and modifying it therein
#Type Name ID GECOS Home directory Shell
g kodi - -
u kodi - "Kodi User" /var/lib/kodi
# supplemental groups
m kodi audio
m kodi optical
m kodi uucp
m kodi video

3
init/tmpfiles.conf Normal file
View File

@ -0,0 +1,3 @@
#Type Path Mode User Group Age Argument
d /var/lib/kodi 0750 kodi kodi - -
Z /var/lib/kodi - kodi kodi - -

View File

@ -1,10 +0,0 @@
# == System users ==
# user uid descr home
u kodi - Kodi /var/lib/kodi
# == Group memberships ==
# user group
m kodi audio
m kodi optical
m kodi uucp
m kodi video

View File

@ -1 +0,0 @@
d /var/lib/kodi 0700 kodi kodi -