The pipewire.service and wireplumber.service system services by default
start the processes as user pipewire. Without a pipewire user, the
systemd.services fail to start.

Add the pipewire user to the video and audio groups to give PipeWire
access to the video and audio devices.

Signed-off-by: Michael Tretter <[email protected]>
---
 projectroot/etc/group  | 5 +++--
 projectroot/etc/passwd | 1 +
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/projectroot/etc/group b/projectroot/etc/group
index b1965e6c297f..8f0af165ec9b 100644
--- a/projectroot/etc/group
+++ b/projectroot/etc/group
@@ -18,9 +18,9 @@ kmem:x:109:
 lp:x:110:
 tape:x:111:
 tty:x:112:
-video:x:113:
+video:x:113:pipewire
 lock:x:114:
-audio:x:115:
+audio:x:115:pipewire
 input:x:116:
 mysql:x:117:
 mosquitto:x:118:
@@ -36,4 +36,5 @@ rauc-hawkbit:x:212:
 redis:x:213:
 sgx:x:214:
 seat:x:215:
+pipewire:x:216:
 nogroup:x:65534:
diff --git a/projectroot/etc/passwd b/projectroot/etc/passwd
index b4669abb59dd..4ac336458e6c 100644
--- a/projectroot/etc/passwd
+++ b/projectroot/etc/passwd
@@ -18,5 +18,6 @@ pulse:x:209:210:pulse:/dev/null:/bin/false
 chrony:x:210:211:chrony:/dev/null:/bin/false
 rauc-hawkbit:x:211:212:rauc-hawkbit:/dev/null:/bin/false
 redis:x:212:213:redis:/dev/null:/bin/false
+pipewire:x:213:216:pipewire:/dev/null:/bin/false
 rpcuser:x:65533:65534:RPC user:/dev/null:/bin/false
 nobody:x:65534:65534:Unprivileged Nobody:/dev/null:/bin/false
-- 
2.30.2


Reply via email to