Results 1 to 8 of 8

Thread: Customize Guest Account

  1. #1
    Join Date
    Aug 2009
    Location
    United States
    Beans
    151
    Distro
    Ubuntu Development Release

    Customize Guest Account

    Hi;

    I occasionally let others use my computer and want to be able to use the guest account to protect my data. Its really annoying, however, to have setup windows pop up at the beginning of every guest session and have to customize it every time I log in. What I would like is some way to preserve settings that could be made in the guest account.

    How can I do this? I'm not finding anything from search.

    Edit: Its ok to scrub the guest account clean, but not everything!
    Last edited by kid1000002000; May 12th, 2010 at 09:39 PM. Reason: clarification

  2. #2
    Join Date
    Aug 2009
    Location
    United States
    Beans
    151
    Distro
    Ubuntu Development Release

    Re: Customize Guest Account

    bump

  3. #3
    Join Date
    Nov 2007
    Location
    Florida
    Beans
    37

    Re: Customize Guest Account

    This pointed me to the /usr/share/gdm/guest-session/guest-session-setup.sh file.

    It looks like it copies the /etc/skel directory as a guest /home on each login.

    The way I would handle it is to log in as guest, get it set up the way you like, then open a terminal and cp your modified guest /home to something like /etc/skel_guest. Then change the guest-session-setup.sh file so that it copies /etc/skel_guest instead of /etc/skel.

    I'm not sure what the actual path for guest's home would be, but as an example of what I'm talking about..
    Code:
    sudo cp -r /home/Guest /etc/skel_guest
    Line 47 in guest-session-setup.sh has the command it executes for the cp that you would alter
    Code:
    from this:
    cp -rT /etc/skel/ "$HOME"
    
    to this:
    cp -rT /etc/skel_guest/ "$HOME"
    Last edited by portentum; May 19th, 2010 at 07:18 AM.

  4. #4
    Join Date
    Mar 2007
    Beans
    5

    Re: Customize Guest Account

    Note for Lucid Lynx users:

    On the fresh install that I have been attempting this on, it puts the generated guest account in:

    /tmp/guest-home.XXXXXX

    Where XXXXXX is an apparently random string. Other than that, this appears to work flawlessly.

  5. #5
    Join Date
    Mar 2010
    Beans
    Hidden!

    Re: Customize Guest Account

    If your lazy like me and don't want to do anything so complicated then just make a new unprivileged user, set it up like you want, and use a simple password (or it seems you can use no password on Lucid now).

  6. #6
    Join Date
    Nov 2007
    Location
    Florida
    Beans
    37

    Re: Customize Guest Account

    Quote Originally Posted by Matti L View Post
    If your lazy like me and don't want to do anything so complicated then just make a new unprivileged user, set it up like you want, and use a simple password (or it seems you can use no password on Lucid now).
    This misses the point of a guest account, however. It means each guest doesn't get a blank, clean account to work with.

  7. #7
    Join Date
    Aug 2010
    Location
    Goteborg, Sweden
    Beans
    24
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Customize Guest Account

    I wrote a tutorial, Customize guest session, that provides a few customization examples.

  8. #8
    Join Date
    Dec 2007
    Location
    20.89, -156.50
    Beans
    195
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Customize Guest Account

    This Guide was a help to me. Thanks.
    Em Hotep
    Registered Linux user # 498092
    Registered Ubuntu user # 30550

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •