Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SPEC: use '/run/sssd' as a home dir for 'sssd' user
Browse files Browse the repository at this point in the history
even if 'sssd.sysusers' aren't used

Practically this is only important for C9S, since C10S and
modern Fedora versions do use 'sssd.sysusers'
alexey-tikhonov committed Sep 24, 2024
1 parent 5f5077a commit e5a9415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/sssd.spec.in
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e5a9415

Please sign in to comment.