You are not logged in.

#1 2025-03-09 20:19:31

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,702
Website

systemd-sysusers file not being honored [SOLVED]

I am using a sysuser.conf for my kodi-standalone-service.

% cat /usr/lib/sysusers.d/kodi-standalone.conf
# 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 video

# other groups, see: /usr/lib/sysusers.d/arch.conf or basic.conf
# m kodi network
# m kodi power
# m kodi tty
# m kodi disk
# m kodi storage
m kodi uucp 

# Ubuntu users only
# uncomment the following line if the kodi user needs access to /etc/ttyxxxx
# https://github.com/graysky2/kodi-standalone-service/issues/14
# m kodi dialout

# uncomment the following line if you're running Ubuntu >=20 since they created
# a new render group of which the kodi user needs to be a member
# m kodi render

When the user is created however, it is not a member of the uucp group despite it being defined.

% id kodi
uid=989(kodi) gid=989(kodi) groups=989(kodi),92(audio),98(power),992(optical),990(video)

I am not sure why...

EDIT: Ah, typo:

u! kodi - "Kodi User" /var/lib/kodi

NOT

!u kodi - "Kodi User" /var/lib/kodi

Last edited by graysky (2025-03-09 20:25:26)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB