<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body><span class="vcard"><a href="page.cgi?id=describeuser.html&login=ebassi%40gmail.com" title="Emmanuele Bassi (:ebassi) <ebassi@gmail.com>"> <span class="fn">Emmanuele Bassi (:ebassi)</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - [wayland] can't run application as root using sudo"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772875">bug 772875</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ebassi@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - [wayland] can't run application as root using sudo"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772875#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTABUG - [wayland] can't run application as root using sudo"
href="https://bugzilla.gnome.org/show_bug.cgi?id=772875">bug 772875</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ebassi%40gmail.com" title="Emmanuele Bassi (:ebassi) <ebassi@gmail.com>"> <span class="fn">Emmanuele Bassi (:ebassi)</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>