Announce: Flatpak 1.6.2 released
Matthias Klumpp
matthias at tenstral.net
Thu Feb 13 19:18:23 UTC 2020
Am Do., 13. Feb. 2020 um 18:33 Uhr schrieb Alexander Larsson
<alexander.larsson at gmail.com>:
>
> Hmm, i think you can sudo su. The main issue is that you want to run
> with a "login shell" as the root users. I.e. $HOME is /root (or
> whatever) rather than just happening to be uid 0 with your regular
> user env var setup.
>
> On Thu, Feb 13, 2020 at 6:26 PM Richard Hughes <hughsient at gmail.com> wrote:
> >
> > On Thu, 13 Feb 2020 at 17:16, Alexander Larsson
> > <alexander.larsson at gmail.com> wrote:
> > > Its fine to run it as real root. But with sudo there are risks that
> > > stuff it does writes things owned as root to your users homedir which
> > > can cause permissions issues later.
> >
> > I guess I need to write some release notes about how to switch to the
> > root user, adding a password if not already set. e.g.
> >
> > sudo passwd
> > su -l root -c "flatpak run org.freedesktop.fwupd get-devices"
> >
> > Other ideas welcome.
Couldn't you simply detect that and fix up locations and environment
variables transparently? I actually do that for a few tools when they
are run with sudo (or run themselves with sudo).
What happens if I run `sudo -i flatpak run <id>` (which runs the
command in a login shell), will that work? If so, one could either
cause flatpak to reexec itself with the right sudo command or simply
fail and tell the user how to run it correctly.
Cheers,
Matthias
--
I welcome VSRE emails. See http://vsre.info/
More information about the Flatpak
mailing list