FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

LinkBack Thread Tools
Old 11-23-2007, 03:51 AM
Fajar Priyanto
Default Users without a password?

On Friday 23 November 2007 02:19:48 Caleb Marcus wrote:
> I'd like to create an unprivileged guest account without a password so
> that friends and family who come over can use the computer without
> typing in a password. Is there any way to do this? I don't want to
> enable auto-login in GDM, because that would be annoying for me.

From http://ubuntuforums.org/archive/index.php/t-12777.html

[2] Have a word with PAM!
PAM is the authentication model employed in Ubuntu. The first thing to do is
to edit the PAM file that specifies how authentication should work with GDM.
Open the file:
$ sudo nano /etc/pam.d/gdm
Add lines that specify a password is not required for the users who are listed
in a file that you are going to make later on. The new line in the file
example comes between the #start and #end comments, all the other lines were
there anyway and remain untouched:
auth requisite pam_nologin.so
auth required pam_env.so
# the line below has been added specifically to allow selected users to log in
via GDM without a password
# start
auth sufficient pam_listfile.so item=user sense=allow
file=/etc/X11/gdm/nopassusers.txt onerr=fail
# end
@include common-auth
@include common-account
session required pam_limits.so
@include common-session
@include common-password

[3] Tell PAM who to let in without a pass
Go to this following location: /etc/X11/gdm/
Make a new text file there called nopassusers.txt
In this file, list the usernames of the users who can log in without entering
a password. Put each user on a new line.

OK - that should be it. Like I say, I know this works but have no idea whether
it is sensible. Please if you have knowledge contribute to making this a
better howto!

Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial
11:51:42 up 1:15, 2.6.22-14-generic GNU/Linux
Let's use OpenOffice. http://www.openoffice.org
The real challenge of teaching is getting your students motivated to learn.
ubuntu-users mailing list
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Thread Tools

All times are GMT. The time now is 10:40 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org