<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using sudo with graphical apps is bad, mmmkay?</title>
	<atom:link href="http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/feed/" rel="self" type="application/rss+xml" />
	<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/</link>
	<description>Nerdette ravings</description>
	<lastBuildDate>Mon, 02 Jan 2012 20:36:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Kevin Chadwick</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-2842</link>
		<dc:creator>Kevin Chadwick</dc:creator>
		<pubDate>Fri, 28 Oct 2011 14:47:49 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-2842</guid>
		<description>There&#039;s a few things here. A gui app may update lots of config files and be expected to run as a normal user so you may end up with files that can no longer be changed by a normal user.

The environment issue, well you should run apps via the console with their full path. e.g /usr/bin/sudo /bin/ls

Synaptic will be designed for root use but is far less secure than using /usr/bin/apt-get

Some programs shouldn&#039;t be run or be allowed to run via sudo at all, even /bin/more the sudoers NOEXEC option can help but is no complete fix. See vi versus sudoedit.

Still it&#039;s better than running your whole OS as a Windows Admin.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a few things here. A gui app may update lots of config files and be expected to run as a normal user so you may end up with files that can no longer be changed by a normal user.</p>
<p>The environment issue, well you should run apps via the console with their full path. e.g /usr/bin/sudo /bin/ls</p>
<p>Synaptic will be designed for root use but is far less secure than using /usr/bin/apt-get</p>
<p>Some programs shouldn&#8217;t be run or be allowed to run via sudo at all, even /bin/more the sudoers NOEXEC option can help but is no complete fix. See vi versus sudoedit.</p>
<p>Still it&#8217;s better than running your whole OS as a Windows Admin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: enliblendof</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1410</link>
		<dc:creator>enliblendof</dc:creator>
		<pubDate>Fri, 19 Dec 2008 18:31:26 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1410</guid>
		<description>The good resource is informative and actual</description>
		<content:encoded><![CDATA[<p>The good resource is informative and actual</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John P</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1295</link>
		<dc:creator>John P</dc:creator>
		<pubDate>Wed, 12 Nov 2008 00:43:59 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1295</guid>
		<description>This depends on how you have sudo configured.

Use sudo -H to set home to ~root when you use sudo.  Or configure this, and other environment settings, in your sudoers file.

Using the xauth PAM module, it is even possible to get sudo to create its own copy of the .Xauthority file.  In fact, Fedora Core used to configure su that way (and may still do so, I mostly use Ubuntu now).

So why does this advise apply to GUI apps, but not console apps?  I&#039;m not sure that blindly running non-GUI applications as root with the user&#039;s environment set is any safer -- in either case it depends upon the behaviour of the individual application and which config files it reads/writes.</description>
		<content:encoded><![CDATA[<p>This depends on how you have sudo configured.</p>
<p>Use sudo -H to set home to ~root when you use sudo.  Or configure this, and other environment settings, in your sudoers file.</p>
<p>Using the xauth PAM module, it is even possible to get sudo to create its own copy of the .Xauthority file.  In fact, Fedora Core used to configure su that way (and may still do so, I mostly use Ubuntu now).</p>
<p>So why does this advise apply to GUI apps, but not console apps?  I&#8217;m not sure that blindly running non-GUI applications as root with the user&#8217;s environment set is any safer &#8212; in either case it depends upon the behaviour of the individual application and which config files it reads/writes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troels Liebe Bentsen</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1293</link>
		<dc:creator>Troels Liebe Bentsen</dc:creator>
		<pubDate>Tue, 11 Nov 2008 23:02:42 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1293</guid>
		<description>sudo on some GUI apps can be useful, fx.

sudo gvim /boot/grub/menu.lst

is much better than 

gksudo gvim /boot/grub/menu.lst

Since with sudo my environment stays the same, meaning all my .vim* configurations from my normal user is used, giving me highlighting and other nice things. And you could properly find other apps were this would be the case as well.</description>
		<content:encoded><![CDATA[<p>sudo on some GUI apps can be useful, fx.</p>
<p>sudo gvim /boot/grub/menu.lst</p>
<p>is much better than </p>
<p>gksudo gvim /boot/grub/menu.lst</p>
<p>Since with sudo my environment stays the same, meaning all my .vim* configurations from my normal user is used, giving me highlighting and other nice things. And you could properly find other apps were this would be the case as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Edmundson</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1291</link>
		<dc:creator>David Edmundson</dc:creator>
		<pubDate>Tue, 11 Nov 2008 22:29:53 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1291</guid>
		<description>I&#039;m not convinced you&#039;re right.

Running any application as root when it&#039;s not needed is bad, because there&#039;s more to go wrong, and it has potential to mess up permissions on config files used by your editor. However running kdesu[do] is still runnning the next application as root.

sudoedit is the best solution. It copies the file (as root) to a temporary location. Lets you edit the file (as yourself in the editor of your choice) Then on exit, copies the file back (as root).

That way as much as possible isn&#039;t running as root.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not convinced you&#8217;re right.</p>
<p>Running any application as root when it&#8217;s not needed is bad, because there&#8217;s more to go wrong, and it has potential to mess up permissions on config files used by your editor. However running kdesu[do] is still runnning the next application as root.</p>
<p>sudoedit is the best solution. It copies the file (as root) to a temporary location. Lets you edit the file (as yourself in the editor of your choice) Then on exit, copies the file back (as root).</p>
<p>That way as much as possible isn&#8217;t running as root.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miia Ranta &#187; Daily Digest for 2008-11-11</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1290</link>
		<dc:creator>Miia Ranta &#187; Daily Digest for 2008-11-11</dc:creator>
		<pubDate>Tue, 11 Nov 2008 22:00:44 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1290</guid>
		<description>[...] Published a blog post. Using sudo with graphical apps is bad, mmmkay? [...]</description>
		<content:encoded><![CDATA[<p>[...] Published a blog post. Using sudo with graphical apps is bad, mmmkay? [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peng&#8217;s links for Tuesday, 11 November &#171; I&#8217;m Just an Avatar</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1289</link>
		<dc:creator>Peng&#8217;s links for Tuesday, 11 November &#171; I&#8217;m Just an Avatar</dc:creator>
		<pubDate>Tue, 11 Nov 2008 20:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1289</guid>
		<description>[...] Rhodes: The evolution of open source softwareDaniel Holbach: Combining Bug Jams and Packaging JamsMiia Ranta: Using sudo with graphical apps is bad, mmmkay?Emma Jane Hogbin: Screen casts: now with fade [...]</description>
		<content:encoded><![CDATA[<p>[...] Rhodes: The evolution of open source softwareDaniel Holbach: Combining Bug Jams and Packaging JamsMiia Ranta: Using sudo with graphical apps is bad, mmmkay?Emma Jane Hogbin: Screen casts: now with fade [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1286</link>
		<dc:creator>Jonathan</dc:creator>
		<pubDate>Tue, 11 Nov 2008 17:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1286</guid>
		<description>I&#039;ve always wondered about this.  My only question was I thought &quot;they&quot; were getting rid of gksudo.  Or were they just replacing the previous/current implementation for accessing administrative graphical items like Synaptic and Services via gksudo with PolicyKit?  Meaning, will gksudo still be around once PolicyKit is in full-swing?

On a side note, it would be very helpful to have a button accessible in graphical apps like gedit where you could click it and change the process to an administrative-level app.  Similar to what PolicyKit does actually.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve always wondered about this.  My only question was I thought &#8220;they&#8221; were getting rid of gksudo.  Or were they just replacing the previous/current implementation for accessing administrative graphical items like Synaptic and Services via gksudo with PolicyKit?  Meaning, will gksudo still be around once PolicyKit is in full-swing?</p>
<p>On a side note, it would be very helpful to have a button accessible in graphical apps like gedit where you could click it and change the process to an administrative-level app.  Similar to what PolicyKit does actually.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jldugger</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1285</link>
		<dc:creator>jldugger</dc:creator>
		<pubDate>Tue, 11 Nov 2008 17:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1285</guid>
		<description>The problem is that the user&#039;s local environment could leak a pathway from the internet to root. Visit some flash website in firefox, which makes a sneaky write to a config file; then run some gui app via sudo that reads from the config file. At that point, any vulnerability in the app may lead to root exploitation.</description>
		<content:encoded><![CDATA[<p>The problem is that the user&#8217;s local environment could leak a pathway from the internet to root. Visit some flash website in firefox, which makes a sneaky write to a config file; then run some gui app via sudo that reads from the config file. At that point, any vulnerability in the app may lead to root exploitation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Little Girl</title>
		<link>http://myrtti.fi/blog/2008/11/11/using-sudo-with-graphical-apps-is-bad-mmmkay/comment-page-1/#comment-1284</link>
		<dc:creator>Little Girl</dc:creator>
		<pubDate>Tue, 11 Nov 2008 16:52:41 +0000</pubDate>
		<guid isPermaLink="false">http://myrtti.fi/blog/?p=438#comment-1284</guid>
		<description>Hey there,
Another good page on this:

https://help.ubuntu.com/community/RootSudo

And to muddy the waters a bit more, from Hardy Heron 8.04 to the present, the correct command in Kubuntu is:

kdesudo kate

In previous releases of Kubuntu, kdesu kate will do the trick.</description>
		<content:encoded><![CDATA[<p>Hey there,<br />
Another good page on this:</p>
<p><a href="https://help.ubuntu.com/community/RootSudo" rel="nofollow">https://help.ubuntu.com/community/RootSudo</a></p>
<p>And to muddy the waters a bit more, from Hardy Heron 8.04 to the present, the correct command in Kubuntu is:</p>
<p>kdesudo kate</p>
<p>In previous releases of Kubuntu, kdesu kate will do the trick.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

