LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to stop auto-logout? (https://www.linuxquestions.org/questions/linux-general-1/how-to-stop-auto-logout-678440/)

BrianK 10-22-2008 09:55 PM

How to stop auto-logout?
 
My machine logs me out after X hours. I don't mean logs out of ssh, I mean if I'm sitting at my machine, then leave for a couple hours, when I come back, I've been logged out & am back at the login screen. This doesn't bode well for the apps I run that take several hours to complete.

I don't have a TMOUT env var set, so it's happening somewhere else.

I'm using gnome/metacity.

Any ideas where I should look?

{BBI}Nexus{BBI} 10-22-2008 10:58 PM

I would start by taking a look at your .xsession-errors file in your home directory.

jailbait 10-22-2008 11:04 PM

Also take a look at your screensaver options in gnome. They might be messed up.

------------------
Steve Stites

BrianK 10-23-2008 01:29 PM

hmm... good ideas, but no lock so far:

Code:

cat .xsession-errors
/etc/gdm/PreSession/Default: Registering your session with wtmp and utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -w /var/log/wtmp -u /var/run/utmp -x "/var/lib/gdm/:0.Xservers" -h "" -l ":0" "briank"
/etc/gdm/Xsession: Beginning session setup...
SESSION_MANAGER=local/akane:/tmp/.ICE-unix/31333,inet6/akane:44287,inet/akane:57701
** Message: Starting remote desktop server
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
Gnome-Message: gnome_execute_async_with_env_fds: returning -1
seahorse nautilus module initialized
Initializing gnome-mount extension
Initializing nautilus-open-terminal extension
Introspect error: The name org.xchat.service was not provided by any .service files
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
** Message: drive = 0
** Message: volume = 0
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!
Warning: more than one line!

I also looked in /etc/gdm/Xsession & all the files that are included in that. Nothing obvious stood out that looked like "timeout" or "logout" or "auto*"

I'm using the gnome screensaver so there aren't too many options there.

FWIW, this is a company-wide setting that our last admin put in place. He left in a hurry & didn't bother documenting anything like this, so I'm trying to find & remove this setting as its interfering with more than just my work.

BrianK 10-24-2008 06:12 PM

For the record, if anyone else comes across this, the auto-logout feature (in my case) was a custom deal made by our former admin that was tied into several site-wide applications & was rooted in a python deamon.

It's loads of fun uncovering all this custom, undocumented functionality. :p


All times are GMT -5. The time now is 11:58 AM.