[Wayland-bugs] [Bug 772875] [wayland] can't run application as root using sudo

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Thu Oct 13 17:45:41 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772875

Emmanuele Bassi (:ebassi) <ebassi at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebassi at gmail.com

--- Comment #2 from Emmanuele Bassi (:ebassi) <ebassi at gmail.com> ---
To further elaborate: the appropriate way to run gedit with sudo is:

  set EDITOR=gedit
  sudo -e /etc/some/file/owned/by/root

which will run gedit in your session, on a temporary file, and then sudo will
swap the temporary file with the target.

If you want to just browse files, GVFS now has an 'admin:' URI scheme which
will let you open files via appropriate privilege escalation through polkit.

In short: there is no reason whatsoever to run a GUI application — with its
unknown security surface, using various dependencies at build and run time,
themselves with unknown security surface — as root.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20161013/61148314/attachment.html>


More information about the wayland-bugs mailing list