Fix ownership of config and state directories
authorNathan Kinder <nkinder@redhat.com>
Thu, 7 May 2015 17:59:30 +0000 (10:59 -0700)
committerRob Crittenden <rcritten@redhat.com>
Thu, 7 May 2015 19:36:09 +0000 (15:36 -0400)
The recent RPM package restructing introduced some problems with
the ownership of /etc/ipsilon and /var/lib/ipsilon.  These were
previously owned by the 'ipsilon' user, but the changes resulted
in the ownership being set as root since the 'ipsilon' user was
not yet created when the directories were installed.

While discussing this problem, it was determined that we should
have the ownership of these directories be root, but allow other
users to traverse through them so they can access subdirectories
that they have permissions on.

Signed-off-by: Nathan Kinder <nkinder@redhat.com>
Reviewed-by: Rob Crittenden <rcritten@redhat.com>
contrib/fedora/ipsilon.spec

index 1127944..89752e7 100644 (file)
@@ -317,8 +317,8 @@ fi
 %{_datadir}/ipsilon/ui/js
 %{_datadir}/ipsilon/ui/fonts
 %{_libexecdir}/ipsilon
 %{_datadir}/ipsilon/ui/js
 %{_datadir}/ipsilon/ui/fonts
 %{_libexecdir}/ipsilon
-%dir %attr(0700,ipsilon,ipsilon) %{_sharedstatedir}/ipsilon
-%dir %attr(0700,ipsilon,ipsilon) %{_sysconfdir}/ipsilon
+%dir %attr(0751,root,root) %{_sharedstatedir}/ipsilon
+%dir %attr(0751,root,root) %{_sysconfdir}/ipsilon
 
 %files client
 %{_bindir}/ipsilon-client-install
 
 %files client
 %{_bindir}/ipsilon-client-install