<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.16.1">
</HEAD>
<BODY>
Thanks for trying, but it didn't work... it actually broke authentication, preventing anyone (not just the users on that list) from logging in. I just reversed the changes in recovery mode, and that fixed it.<BR>
On Fri, 2007-11-23 at 11:51 +0700, Fajar Priyanto wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">On Friday 23 November 2007 02:19:48 Caleb Marcus wrote:</FONT>
<FONT COLOR="#000000">> I'd like to create an unprivileged guest account without a password so</FONT>
<FONT COLOR="#000000">> that friends and family who come over can use the computer without</FONT>
<FONT COLOR="#000000">> typing in a password. Is there any way to do this? I don't want to</FONT>
<FONT COLOR="#000000">> enable auto-login in GDM, because that would be annoying for me.</FONT>
<FONT COLOR="#000000">From <A HREF="http://ubuntuforums.org/archive/index.php/t-12777.html">http://ubuntuforums.org/archive/index.php/t-12777.html</A></FONT>
<FONT COLOR="#000000">[2] Have a word with PAM!</FONT>
<FONT COLOR="#000000">PAM is the authentication model employed in Ubuntu. The first thing to do is </FONT>
<FONT COLOR="#000000">to edit the PAM file that specifies how authentication should work with GDM. </FONT>
<FONT COLOR="#000000">Open the file:</FONT>
<FONT COLOR="#000000">$ sudo nano /etc/pam.d/gdm</FONT>
<FONT COLOR="#000000">Add lines that specify a password is not required for the users who are listed </FONT>
<FONT COLOR="#000000">in a file that you are going to make later on. The new line in the file </FONT>
<FONT COLOR="#000000">example comes between the #start and #end comments, all the other lines were </FONT>
<FONT COLOR="#000000">there anyway and remain untouched:</FONT>
<FONT COLOR="#000000">----------------------</FONT>
<FONT COLOR="#000000">#%PAM-1.0</FONT>
<FONT COLOR="#000000">auth requisite pam_nologin.so</FONT>
<FONT COLOR="#000000">auth required pam_env.so</FONT>
<FONT COLOR="#000000"># the line below has been added specifically to allow selected users to log in </FONT>
<FONT COLOR="#000000">via GDM without a password</FONT>
<FONT COLOR="#000000"># start</FONT>
<FONT COLOR="#000000">auth sufficient pam_listfile.so item=user sense=allow </FONT>
<FONT COLOR="#000000">file=/etc/X11/gdm/nopassusers.txt onerr=fail</FONT>
<FONT COLOR="#000000"># end</FONT>
<FONT COLOR="#000000">@include common-auth</FONT>
<FONT COLOR="#000000">@include common-account</FONT>
<FONT COLOR="#000000">session required pam_limits.so</FONT>
<FONT COLOR="#000000">@include common-session</FONT>
<FONT COLOR="#000000">@include common-password</FONT>
<FONT COLOR="#000000">----------------------</FONT>
<FONT COLOR="#000000">[3] Tell PAM who to let in without a pass</FONT>
<FONT COLOR="#000000">Go to this following location: /etc/X11/gdm/</FONT>
<FONT COLOR="#000000">Make a new text file there called nopassusers.txt</FONT>
<FONT COLOR="#000000">In this file, list the usernames of the users who can log in without entering </FONT>
<FONT COLOR="#000000">a password. Put each user on a new line.</FONT>
<FONT COLOR="#000000">OK - that should be it. Like I say, I know this works but have no idea whether </FONT>
<FONT COLOR="#000000">it is sensible. Please if you have knowledge contribute to making this a </FONT>
<FONT COLOR="#000000">better howto!</FONT>
<FONT COLOR="#000000">HTH</FONT>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>