Pages

Wednesday, October 22, 2014

Guest Login

Recently there was a need to have a "volatile" guest account on my debian box. The solution it to create a user account with the $HOME in /tmp so it will get wiped out. (This is on Debian Wheezy / stable)

The relevant command is in this answer on SuperUser

> # Create account called guest with $HOME in /tmp
> # and default shell as 'none' so ssh access is not possible
> sudo useradd -mb /tmp -s /bin/false -c "Welcome Guest" guest;
> #Disable the password - Click on "Guest" in login screen
> #Make sure you have users displayed on the login screen!
> sudo passwd -d guest

Now I need to figure out how to display a nice welcome message for the Guest user *after* login (Ubuntu 14.04 does this out of the box)

No comments: