<?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>Penguins in a Strange Land &#187; gdm</title>
	<atom:link href="http://strange.nsk.pt/tag/gdm/feed/" rel="self" type="application/rss+xml" />
	<link>http://strange.nsk.pt</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 26 Jul 2010 12:29:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux guest account</title>
		<link>http://strange.nsk.pt/2009/12/linux-guest-account/</link>
		<comments>http://strange.nsk.pt/2009/12/linux-guest-account/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 17:20:51 +0000</pubDate>
		<dc:creator>luciano</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://strange.nsk.pt/?p=77</guid>
		<description><![CDATA[So, you have a Linux system and want to show its hawtness to random stranges, but without having them mess with the system permanently? And use that account for those airport checks automatically? Well, it&#8217;s easy.

Disable remote login for the guest account:
echo DenyUsers guest &#62;&#62; /etc/ssh/sshd_config
service sshd condrestart

Create the guest account:
adduser guest
Make the guest account [...]]]></description>
			<content:encoded><![CDATA[<p>So, you have a Linux system and want to show its hawtness to random stranges, but without having them mess with the system permanently? And use that account for those airport checks automatically? Well, it&#8217;s easy.</p>
<ol>
<li>Disable remote login for the guest account:
<pre>echo DenyUsers guest &gt;&gt; /etc/ssh/sshd_config
service sshd condrestart
</pre>
<li>Create the guest account:
<pre>adduser guest</pre>
<li>Make the guest account home directory a filesystem in RAM:
<pre>echo "guest /home/guest tmpfs size=20%,
  mode=0700,uid=$(id -u guest),gid=$(id -g guest) 0 0" &gt;&gt; /etc/fstab
</pre>
<li>And finally configure the system to automatically login as guest:
<pre>
echo '
[daemon]
TimedLoginEnable=true
TimedLogin=guest
TimedLoginDelay=15
' >> /etc/gdm/custom.conf
</pre>
</ol>
<p>That&#8217;s it. On your next reboot, and if you do nothing, you&#8217;ll be logged in as <code>guest</code>. If you don&#8217;t like that the terminal for the guest user doesn&#8217;t include a pretty prompt, you may change the fstab entry, mounting the <code>tmpfs</code> somewhere else, like <code>/home/.guest</code>, and then have a <code>funionfs</code> mount for <code>~</code> with <code>/etc/skel</code> on top.</p>
<p>On boot, just make sure to cancel the automatic login, if you want to log in as another user.</p>
]]></content:encoded>
			<wfw:commentRss>http://strange.nsk.pt/2009/12/linux-guest-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
