On running gui applications as root

Matthew Miller mattdm at fedoraproject.org
Thu Nov 19 03:18:34 UTC 2015


On Wed, Nov 18, 2015 at 03:09:34PM -0500, Adam Jackson wrote:
> To the bug in question: probably we should make it so 'sudo gedit' does
> work, but I'd still strongly discourage anyone from actually doing so.

Actually, there's a better way. The authors of sudo already considered
this. Set "VISUAL" to gedit, and use `sudo -e`. That invokes the editor
as non-root on a temporary file, and copies that temp file into place
when done.

-- 
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader


More information about the devel mailing list