[Freedombox-pkg-team] Bug#837206: plinth: Change ownership of plinth.sqlite3 to plinth:plinth from root:root

James Valleroy jvalleroy at mailbox.org
Thu Sep 22 12:15:04 UTC 2016

On Thu, 22 Sep 2016 07:42:38 -0400 James Valleroy
<jvalleroy at mailbox.org> wrote:
> On Sat, 10 Sep 2016 08:00:56 +0530 Sunil Mohan Adapa <sunil at medhas.org>
> wrote:
> >
> > In the upcoming release of Plinth, Plinth runs as non-root user
> > Everything is ready for it, however, for users upgrading from older
> > version,
> > the ownership of the /var/lib/plinth/plinth.sqlite3 file needs to be
> > changed
> > from root:root to plinth:plinth. Otherwise, Plinth won't be able to
> > anymore unable to write to its own state file.
> >
> This seems to already be done with the current postinst. When I upgrade
> plinth, the files under /var/lib/plinth and /var/log/plinth are owned by
> plinth, where they were previously owned by root.

However there is still an issue for new installs. Although those folders
are owned by plinth, the db and log files are initially created by
"plinth --setup", which is run as root. We may need to patch
data/usr/lib/freedombox/setup.d/86_plinth/ to change the owner of these
files after "plinth --setup".

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/freedombox-pkg-team/attachments/20160922/4c99ba7d/attachment.sig>

More information about the Freedombox-pkg-team mailing list