From e5a9415258b35d232863791d1690432550f43fae Mon Sep 17 00:00:00 2001 From: Alexey Tikhonov Date: Tue, 24 Sep 2024 10:43:35 +0200 Subject: [PATCH] SPEC: use '/run/sssd' as a home dir for 'sssd' user even if 'sssd.sysusers' aren't used Practically this is only important for C9S, since C10S and modern Fedora versions do use 'sssd.sysusers' --- contrib/sssd.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in index 90bb5bbdd0e..9a72eac87f7 100644 --- a/contrib/sssd.spec.in +++ b/contrib/sssd.spec.in @@ -1101,7 +1101,7 @@ install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/sssd.conf %sysusers_create_compat %{SOURCE1} %else getent group sssd >/dev/null || groupadd -r sssd -getent passwd sssd >/dev/null || useradd -r -g sssd -d / -s /sbin/nologin -c "User for sssd" sssd +getent passwd sssd >/dev/null || useradd -r -g sssd -d /run/sssd -s /sbin/nologin -c "User for sssd" sssd %endif %endif