<?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>Jason L. Froebe - Tech tips and How Tos for Fellow Techies &#187; authentication</title>
	<atom:link href="http://froebe.net/blog/index.php/tag/authentication/feed/" rel="self" type="application/rss+xml" />
	<link>http://froebe.net/blog</link>
	<description>Tips &#38; Tricks for Databases (Sybase, Oracle, MySQL, PostgreSQL, SQLite), Windows, Linux, Solaris, Perl, Java, Bash and so much much more</description>
	<lastBuildDate>Sat, 07 Jan 2012 22:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Sun&#8217;s VirtualBox 3.1.x: Getting VRDP (remote desktop) to authenticate properly with Linux PAM</title>
		<link>http://froebe.net/blog/2010/01/22/suns-virtualbox-3-1-x-getting-vrdp-remote-desktop-to-authenticate-properly-with-linux-pam/</link>
		<comments>http://froebe.net/blog/2010/01/22/suns-virtualbox-3-1-x-getting-vrdp-remote-desktop-to-authenticate-properly-with-linux-pam/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 16:39:55 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[3.1.2]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[user_mod]]></category>
		<category><![CDATA[vbox]]></category>
		<category><![CDATA[vboxheadless]]></category>
		<category><![CDATA[vboxtool]]></category>
		<category><![CDATA[vrdp]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=1193</guid>
		<description><![CDATA[I rebuilt an Ubuntu 9.10 server this past week, ripping off VMware and replacing it with VirtualBox 3.1.2. Setting up VirtualBox as a headless server was very easy with VBoxTool. However, I ran into a problem that I was unable to connect using remote desktop (rdesktop) as any user but the user that started the [...]]]></description>
			<content:encoded><![CDATA[<p>I rebuilt an Ubuntu 9.10 server this past week, ripping off <a href="http://www.vmware.com">VMware</a> and replacing it with <a href="http://www.virtualbox.org">VirtualBox 3.1.2</a>.  Setting up VirtualBox as a headless server was very easy with <a href="http://vboxtool.sourceforge.net/">VBoxTool</a>.  However, I ran into a problem that I was unable to connect using remote desktop (rdesktop) as any user but the user that started the virtual machine.  </p>
<div class="bash dean_ch">Jan <span class="nu0">21</span> <span class="nu0">22</span>:<span class="nu0">43</span>:<span class="nu0">13</span> vm-holder unix_chkpwd<span class="br0">&#91;</span><span class="nu0">16040</span><span class="br0">&#93;</span>: check pass; user unknown<br />
Jan <span class="nu0">21</span> <span class="nu0">22</span>:<span class="nu0">43</span>:<span class="nu0">13</span> vm-holder unix_chkpwd<span class="br0">&#91;</span><span class="nu0">16040</span><span class="br0">&#93;</span>: password check failed <span class="kw1">for</span> user <span class="br0">&#40;</span>jason<span class="br0">&#41;</span><br />
Jan <span class="nu0">21</span> <span class="nu0">22</span>:<span class="nu0">43</span>:<span class="nu0">13</span> vm-holder VBoxHeadless: pam_unix<span class="br0">&#40;</span>vrdpauth:auth<span class="br0">&#41;</span>: authentication failure; <span class="re2">logname</span>=virtualbox <span class="re2">uid</span>=<span class="nu0">1001</span> <span class="re2">euid</span>=<span class="nu0">1001</span> <span class="re2">tty</span>= <span class="re2">ruser</span>= <span class="re2">rhost</span>= &nbsp;<span class="re2">user</span>=jason</div>
<p>This is, currently, an undocumented security feature of VirtualBox 3.1x to prevent just anyone from accessing the virtual machine <i>console</i>.  For most folk, this might be a very good thing but if you have a team of sysadmins that should have access to the virtual machine consoles, you probably don&#8217;t want them to use the same login.</p>
<p>If that is the case, you can add the user(s) that should have access the virtual machine console to the <i>shadow</i> group on the host Linux machine.  Be warned though that the user(s) that are added to the shadow group should not be able to log into the host machine else they will be able to read the shadow file where all the passwords to the box are stored.  If the users need access to the host box, then they should have a login for host access (not part of the shadow group) and another for virtual machine console access.</p>
<p><strong>Adding linux user <i>jason_vrdp</i> to the shadow group:</strong></p>
<div class="bash dean_ch"><span class="br0">&#40;</span>root<span class="br0">&#41;</span> <span class="co0"># usermod -G shadow,virtualbox jason_vrdp</span></div>
<p><strong>Prevent <i>jason_vrdp</i> from logging in to the host or anyone from sudo&#8217;ing to it:</strong></p>
<pre lang=bash>(root) # usermod --shell /bin/false jason_vrdp</pre>
<p>That&#8217;s it <img src='http://froebe.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2010/01/22/suns-virtualbox-3-1-x-getting-vrdp-remote-desktop-to-authenticate-properly-with-linux-pam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting &#8220;Xlib: PuTTY X11 proxy: wrong authentication protocol attempted&#8221;?  I have the answer :)</title>
		<link>http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/</link>
		<comments>http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/#comments</comments>
		<pubDate>Sat, 15 Nov 2008 02:00:57 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[MIT-MAGIC-COOKIE]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[x windows]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xauth]]></category>
		<category><![CDATA[xlib]]></category>
		<category><![CDATA[xterm]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=755</guid>
		<description><![CDATA[Here&#8217;s the scenario: You ssh to a remote server with your login and either sudo or su to another user to run some application that uses a X Windows front end.  There is a firewall between your desktop and the remote server that allows only ssh connections (port 22).  When you run into the error [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s the scenario:</p>
<p>You ssh to a remote server with your login and either sudo or su to another user to run some application that uses a X Windows front end.  There is a firewall between your desktop and the remote server that allows only ssh connections (port 22).  When you run into the error &#8220;Xlib: PuTTY X11 proxy: wrong authentication protocol attempted&#8221;.  What to do?</p>
<div class="bash dean_ch"><span class="kw2">ssh</span> jason<span class="sy0">@</span>remote-server <span class="re5">-X</span><br />
jason $ <span class="kw3">echo</span> <span class="re1">$DISPLAY</span><br />
localhost:<span class="nu0">10.0</span><br />
jason $ <span class="kw2">su</span> &#8211; oracle<br />
oracle<span class="st_h">&#8216;s Password:<br />
oracle $ xterm<br />
Xlib: connection to &quot;localhost:10.0&quot; refused by server<br />
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted<br />
xterm Xt error: Can&#8217;</span>t open display: localhost:<span class="nu0">10.0</span></div>
<p>On recent OpenSSH Server releases, you can simply enable &#8220;ForwardX11Trusted yes&#8221; in the /etc/ssh/sshd_config file and restart the OpenSSH server.  If you&#8217;re not using a recent OpenSSH Server release or if you can&#8217;t for security or political reasons, what could you do?  Give up?  It&#8217;s simpler than you think.<br />
You need to temporarily transfer the authorization to the other account.  First, get the key from <strong>your</strong> account:</p>
<div class="bash dean_ch">jason $ xauth list<br />
aspc2o1<span class="sy0">/</span>unix:<span class="nu0">10</span> MIT-MAGIC-COOKIE-<span class="nu0">1</span> bc334c66cfec3c5c3d5b0efc4ee9d3ad</div>
<p>Next, sudo/su to the other account and add the authorization key.</p>
<div class="bash dean_ch">jason $ <span class="kw2">su</span> &#8211; oracle<br />
oracle $ xauth add aspc2o1<span class="sy0">/</span>unix:<span class="nu0">10</span> MIT-MAGIC-COOKIE-<span class="nu0">1</span> bc334c66cfec3c5c3d5b0efc4ee9d3ad</div>
<p>Now, you should be able to start any X Windows application, assuming that your DISPLAY variable is set to go through the ssh tunnel:</p>
<div class="bash dean_ch">oracle $ xterm</div>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/11/14/getting-xlib-putty-x11-proxy-wrong-authentication-protocol-attempted-i-have-the-answer/feed/</wfw:commentRss>
		<slash:comments>80</slash:comments>
		</item>
	</channel>
</rss>

