public pc

Loïc Grenié loic.grenie at
Wed Nov 5 11:42:59 UTC 2008

2008/11/5 Embrik Kaslegard <embrik_leifsson at>:
> Loïc Grenié skreiv:
>> 2008/11/5 Embrik Kaslegard <embrik_leifsson at>:
>>> Hi!
>>> I am installing a public pc with ubuntu 8.04. My quest is how do I
>>> close the desktop enivornment? This user can be everyone visiting the
>>> library and I don't want them to delete shortcuts and change the
>>> environment.
>>      You could leave it unlocked and wipe out the pulbic user and recreate
>>   it after each logout.
>>           Loïc
> Good idea. Problem is, I don't know how to do that.

    In /etc/gdm/PostSession/Default you should add (before exit 0)
something like
  that (untested)

if [ "$USER" = guestuser ]; then
  rm -rf ~guestuser
  deluser guestuser
  adduser guestuser
  # empty password for guest user
  passwd -d guestuser

   (change passwd -d guestuser to
yes "Password"|passwd guestuser
  if you wish a real password for your guest).


More information about the ubuntu-users mailing list