summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-08-05 13:53:20 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-10-07 19:51:12 +0200
commitde8b2535165dc56fdbec25fb075883ff8e0a0a00 (patch)
tree76be98ec41f04d2283581c40822785ac26ac220f
parenteadfbd97c9fbf9beb7c6b358e44e0e1e4a5628ae (diff)
downloadsssd-de8b2535165dc56fdbec25fb075883ff8e0a0a00.tar.gz
sssd-de8b2535165dc56fdbec25fb075883ff8e0a0a00.tar.xz
sssd-de8b2535165dc56fdbec25fb075883ff8e0a0a00.zip
RPM: Change file ownership to sssd.sssd
-rw-r--r--contrib/sssd.spec.in26
1 files changed, 15 insertions, 11 deletions
diff --git a/contrib/sssd.spec.in b/contrib/sssd.spec.in
index 4c11bab24..55ae24ce1 100644
--- a/contrib/sssd.spec.in
+++ b/contrib/sssd.spec.in
@@ -601,17 +601,17 @@ rm -rf $RPM_BUILD_ROOT
%dir %{sssdstatedir}
%dir %{_localstatedir}/cache/krb5rcache
-%attr(700,root,root) %dir %{dbpath}
-%attr(755,root,root) %dir %{mcpath}
-%ghost %attr(0644,root,root) %verify(not md5 size mtime) %{mcpath}/passwd
-%ghost %attr(0644,root,root) %verify(not md5 size mtime) %{mcpath}/group
-%attr(755,root,root) %dir %{pipepath}
-%attr(755,root,root) %dir %{pubconfpath}
-%attr(755,root,root) %dir %{gpocachepath}
-%attr(700,root,root) %dir %{pipepath}/private
-%attr(750,root,root) %dir %{_var}/log/%{name}
-%attr(711,root,root) %dir %{_sysconfdir}/sssd
-%ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
+%attr(700,sssd,sssd) %dir %{dbpath}
+%attr(755,sssd,sssd) %dir %{mcpath}
+%ghost %attr(0644,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/passwd
+%ghost %attr(0644,sssd,sssd) %verify(not md5 size mtime) %{mcpath}/group
+%attr(755,sssd,sssd) %dir %{pipepath}
+%attr(755,sssd,sssd) %dir %{pubconfpath}
+%attr(755,sssd,sssd) %dir %{gpocachepath}
+%attr(700,sssd,sssd) %dir %{pipepath}/private
+%attr(750,sssd,sssd) %dir %{_var}/log/%{name}
+%attr(711,sssd,sssd) %dir %{_sysconfdir}/sssd
+%ghost %attr(0600,sssd,sssd) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
%if (0%{?use_systemd} == 1)
%attr(755,root,root) %dir %{_sysconfdir}/systemd/system/sssd.service.d
%config(noreplace) %{_sysconfdir}/systemd/system/sssd.service.d/journal.conf
@@ -800,6 +800,10 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/%{name}/modules/libwbclient.so
%{_libdir}/pkgconfig/wbclient_sssd.pc
+%pre common
+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
+
%if (0%{?use_systemd} == 1)
# systemd
%post common