<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SysAdmin Adventures &#187; root</title>
	<atom:link href="http://blog.tpa.me.uk/tag/root/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.tpa.me.uk</link>
	<description>Tech notes from a Systems Administrator</description>
	<lastBuildDate>Mon, 31 Oct 2011 11:09:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Accessing a User&#8217;s X Session as Root</title>
		<link>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/</link>
		<comments>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 13:10:10 +0000</pubDate>
		<dc:creator>Zordrak</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[X]]></category>
		<category><![CDATA[Xauthority]]></category>

		<guid isPermaLink="false">http://blog.tpa.me.uk/?p=296</guid>
		<description><![CDATA[This is a very simple thing, but it seems not widely known. You login to, or start, X as a regular user as you rightly should, but you want to be able to su to root and then run a GUI application as root. There are a number of ways to do this, some better [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very simple thing, but it seems not widely known.</p>
<p>You login to, or start, X as a regular user as you rightly should, but you want to be able to su to root and then run a GUI application as root.</p>
<p>There are a number of ways to do this, some better than others, including using &#8220;kdesu&#8221;, &#8220;xhost&#8221; etc; the simplest however is:</p>
<div class="codecolorer-container bash geshi" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;"># xauth merge ~xuser/.Xauthority</span><br />
<span style="color: #666666; font-style: italic;"># export DISPLAY=:0.0</span></div></div>
<p>&#8230; where xuser is the user you are running X as. The export line may not be required depending on how you became root.</p>
<p>The root shell you are in now has full authority to communicate with and manipulate X.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tpa.me.uk/2010/02/16/accessing-a-users-x-session-as-root/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

