<?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>patrik.cqure.net &#187; Testing</title>
	<atom:link href="http://patrik.cqure.net/wordpress/category/testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://patrik.cqure.net/wordpress</link>
	<description>random thoughts about random things</description>
	<lastBuildDate>Fri, 27 Nov 2009 23:09:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>Two foxes</title>
		<link>http://patrik.cqure.net/wordpress/2008/05/02/two-foxes/</link>
		<comments>http://patrik.cqure.net/wordpress/2008/05/02/two-foxes/#comments</comments>
		<pubDate>Fri, 02 May 2008 13:42:48 +0000</pubDate>
		<dc:creator>patrik</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[cqure]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[fox]]></category>
		<category><![CDATA[pentest]]></category>

		<guid isPermaLink="false">http://patrik.cqure.net/wordpress/?p=13</guid>
		<description><![CDATA[Have you ever found yourself calling your collegue to show them your mad skills during an application test. Just to seconds later realize that you&#8217;re a Teletubby as session information got mixed up between browsers and you actually achieved nothing? Good, me neither. Anyway I sometimes find myself doing test using several different accounts, running [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever found yourself calling your collegue to show them your mad skills during an application test. Just to seconds later realize that you&#8217;re a Teletubby as session information got mixed up between browsers and you actually achieved nothing?</p>
<p><span id="more-13"></span><br />
Good, me neither. Anyway I sometimes find myself doing test using several different accounts, running simultaneously in both Firefox and Internet Explorer. However, once in a while Firefox is sufficient and I would like to run a separate instance of each on a separate desktop of my Compiz cube just to keep them apart. In order to make sure no session information or other contaminating data gets picked up by the browsers I run them in separate user accounts. This is how I set it up:</p>
<p>First add a user under which the second browser is going to run. This user does not require a shell, as we won&#8217;t log in using this account. My user is called firefox.</p>
<pre lang="bash">useradd -m firefox -s /bin/false</pre>
<p>Then create a script similar to this one in order to be able to start the second instance from you own account. My is called firefox-browser.sh</p>
<pre lang="bash">#!/bin/sh
USER="firefox"
XAUTH=/home/$USER/.Xauthority

if [ `id -u` -ne 0 ]; then
   echo "$0 must be run as root..."
   exit
fi

xauth extract - $DISPLAY | sudo -H -u $USER XAUTHORITY=$XAUTH xauth merge -
sudo -H -u $USER XAUTHORITY=$XAUTH firefox
rm -f $XAUTH</pre>
<p>Start a second browser running as the firefox using sudo</p>
<pre lang="bash">sudo ./firefox-browser.sh</pre>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fpatrik.cqure.net%2Fwordpress%2F2008%2F05%2F02%2Ftwo-foxes%2F&amp;title=Two%20foxes"><img src="http://patrik.cqure.net/wordpress/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://patrik.cqure.net/wordpress/2008/05/02/two-foxes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

