← Back to team overview

ius-coredev team mailing list archive

[Bug 1018067] Re: php53u package updates reset owner of /var/lib/php/session

 

Thanks Jeffrey.
Does the php package already require being installed as root? Because if so, the line "%attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session" could be removed, and "install -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session" could be changed to "install -o root -g apache -m 700 -d $RPM_BUILD_ROOT%{_localstatedir}/lib/php/session". This way the permissions would only be set on the initial installation, not on subsequent updates.

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1018067

Title:
  php53u package updates reset owner of /var/lib/php/session

Status in IUS Community Project:
  Won't Fix

Bug description:
  Every time a new php53u package is installed, the owner of
  /var/lib/php/session is changed to root:root. If PHP runs as a
  different user, this path has likely been configured to a different
  owner and must not be changed. If PHP cannot write to this patch, it
  is unable to create/update sessions (with no error as to why, as far
  as I can tell).

  Can future packages be altered to only set the owner for this path if
  it is creating it?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1018067/+subscriptions


References