<?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; 3.1.2</title>
	<atom:link href="http://froebe.net/blog/index.php/tag/3-1-2/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>
	</channel>
</rss>

