LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to unlock guest session? (http://www.linuxquestions.org/questions/ubuntu-63/how-to-unlock-guest-session-4175431109/)

otoomet 10-08-2012 07:00 AM

How to unlock guest session?
 
I have a dual seat box with ubuntu 12.04 where I occasionally let other people to use guest session under . However, it locks screen after a while if not used and I cannot find a way to unlock it, except by killing the corresponding gnome-session. Guest does not have a password, and unlock seems not to accept empty passwords.

Ideas?
Ott

unSpawn 10-08-2012 10:29 AM

Don't let it lock the session?

otoomet 10-09-2012 01:05 AM

Thank you, unSpawn.

I have seen the instructions about how to disable screen lock, but seemingly these settings will be deleted at logout. Just to ask all the guests to press a key every few minutes -- this is simply infeasible. I think this is a sort of bug (or perhaps a feature) in the lock program, perhaps this can be configured somehow.

A workaround were to create a new guest account with a password. But I would like to get the default account to work in the first place.

unSpawn 10-09-2012 06:13 AM

Quote:

Originally Posted by otoomet (Post 4800935)
I have seen the instructions about how to disable screen lock, but seemingly these settings will be deleted at logout.

Is that because you run some sort of cleanup application? Because for regular accounts GNOME3 settings should just stick. If gnome-menus or ALT+F2 gnome-screensaver doesn't let you change settings in a permanent way you'll have to the startup scripts and dump
Code:

gconftool-2 --set -t bool /org/gnome/desktop/screensaver/lock-enabled false
or
Code:

gsettings set org.gnome.desktop.screensaver lock-enabled false
or the right dconf invocation of that.

otoomet 10-09-2012 06:24 AM

The problem is that guest is not a regular user. It seems that a new user (with a name like guest-xyzsdf) is created every time you log in as guest, and all the files are removed at logout. It's home directory is not in /home either.

I have to admit though that I haven't exactly tested the lock settings (only some desktop settings), but when looking around on the web, I encountered claims like that.

Guest is also logged in under unity by default, but I don't think that matters too much.

unSpawn 10-09-2012 06:56 AM

Quote:

Originally Posted by otoomet (Post 4801169)
The problem is that guest is not a regular user. It seems that a new user (with a name like guest-xyzsdf) is created every time you log in as guest, and all the files are removed at logout. It's home directory is not in /home either.

Ah, I see. In that case wouldn't default settings be imported from /etc/skel or /etc/default/?

widget 10-09-2012 10:38 AM

Quote:

Originally Posted by unSpawn (Post 4801197)
Ah, I see. In that case wouldn't default settings be imported from /etc/skel or /etc/default/?

Should be or remotely possible /root/.guest.

otoomet 10-14-2012 03:57 AM

Good idea.

It seems though that gconf values are not copied from anything like /etc/skel, but created by gconf somehow. So I defined the all-user default for desktop/gnome/lockdown/disable_lock_screen to true in gconf-editor.

Have to test whether it works.

BTW, guest home is in tmp like /tmp/guest-XkdIle.

otoomet 10-15-2012 03:22 AM

It works :-)


All times are GMT -5. The time now is 08:51 AM.