Results 1 to 11 of 11

Thread: Is it possible to auto logout in Linux Mint ?

  1. #1
    Join Date
    Oct 2011
    Posts
    35

    Is it possible to auto logout in Linux Mint ?

    I have a computer with numerous users who cannot seem to me (dependable) to teach them to go away after you've finished with the team. When the user arrives at the computer, immediately select "Switch User" and then I'll take an utmost of 3 persons who register at the top of each other. Is there any method that the system records after many minutes of inactivity?

  2. #2
    Join Date
    Nov 2010
    Posts
    363

    re: Is it possible to auto logout in Linux Mint ?

    The note might be:
    • If you log out when you have finished, you be able to access the system
    • These are the logon times for the computer
    • If you can grip logout when finished, the system will log off and do not be relevant to you

  3. #3
    Join Date
    Nov 2010
    Posts
    442

    re: Is it possible to auto logout in Linux Mint ?

    It appears that for most of these links, it is to restrict login times after log off users. I have no need (yet) to restrict computer time, and I'm just looking for an auto shut off after idling. I have numerous requests for this type of functionality that may be worth adding to the distribution at some point.

    I found a package called "autologous" but I'm not sure that fits my needs. I’m trying to wrap my head around "why-you-edit-what-you-edition" and I think I'll be capable to fit my needs, however, I am still pursuing the issue and return here and after what I believe.

  4. #4
    Join Date
    Mar 2011
    Posts
    490

    re: Is it possible to auto logout in Linux Mint ?

    And he mentioned other shells (csh, tsh, the best known is the Korn shell, nevertheless not so accepted in Linux), also suggesting if you searched AutoLog (Google) to find it, s
    Code:
    For shells that read /etc/profile (like bash, ksh, sh) append: 
    TMOUT=N 
    export TMOUT 
    (In Debian you can get away by putting TMOUT=N in /etc/environment). 
    
    If you use csh, tcsh, or any in the *csh family, then 
    edit /etc/csh.cshrc and add: 
    set autologout = 15

  5. #5
    Join Date
    May 2011
    Posts
    398

    re: Is it possible to auto logout in Linux Mint ?

    Sorry I'm finally getting around to this, but I've been away for a while this system. Anyway, after searching through my computer, I found the "profile" in the file / etc and this is what's in it: C
    Code:
    # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
    # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
    if [ -d /etc/profile.d ]; then
    for i in /etc/profile.d/*.sh; do
    if [ -r $i ]; then
    . $i
    fi
    done
    unset i
    fi
    if [ "$PS1" ]; then
    if [ "$BASH" ]; then
    PS1='\u@\h:\w\$ '
    if [ -f /etc/bash.bashrc ]; then
    . /etc/bash.bashrc
    fi
    else
    if [ "`id -u`" -eq 0 ]; then
    PS1='# '
    else
    PS1='$ '
    fi
    fi
    fi
    umask 022

  6. #6
    Join Date
    Oct 2011
    Posts
    75

    re: Is it possible to auto logout in Linux Mint ?

    I tried to put the "TMOUT = 300" (which is just a trial value) in the / etc / profile and / etc / environment file - only one at a time - nevertheless none of these worked. I’m more or less at a loss after that. Does anybody else have any suggestion?

  7. #7
    Join Date
    Jun 2011
    Posts
    484

    re: Is it possible to auto logout in Linux Mint ?

    Some suggest setting a timer screen saver, start screen saver after a certain time, they also set a password for that user (different user), so you do not know the screen saver password of course you might be able to change them, if you start practicing with the terminal or discover the password

    That the method of a screen saver is activated with a different password for users can be a relatively simple method of getting and automatically lock screen, blocking access to the system Could reboot and reenter. I might be able to lock your desktop (ctrl-alt-backspace)

  8. #8
    Join Date
    Oct 2011
    Posts
    64

    re: Is it possible to auto logout in Linux Mint ?

    Good luck with those ideas, but let's attack this from another angle. I've been watching how people change and see user using the "Switch User" in the dialog box instead of LOGOUT button to close the session.

    Is there a way to remove the "Switch User" button? That way, you have no choice but to log the previous user? My users are not interested in computing to find a way to avoid this (although you can return to haunt me) and should solve my trouble.

  9. #9
    Join Date
    Aug 2011
    Posts
    418

    re: Is it possible to auto logout in Linux Mint ?

    What is the command that is active? As part of a script? As cron table entry? Try one of these:
    Code:
    /usr/bin/gnome-session-save.
    or
    DISPLAY=:0 gnome-session-save.
    or
    DISPLAY=:0 /usr/bin/gnome-session-save..

  10. #10
    Join Date
    Aug 2011
    Posts
    379

    re: Is it possible to auto logout in Linux Mint ?

    Well, some ideas come to mind. Assuming you have configured for a particular user, you can make use of:

    Code:
    Gnome-screensaver-command –q
    Gnome-screensaver-command –t
    pkill -SIGKILL -u <username>
    Force the user's session (although it is an inelegant exit, similar to pressing Ctrl + Alt + Backspace to restart X). However, you must set up cron to start the script on a regular basis, in this case, every minute.

  11. #11
    Join Date
    Jul 2011
    Posts
    229

    re: Is it possible to auto logout in Linux Mint ?

    Quote Originally Posted by Ticod View Post
    Well, some ideas come to mind. Assuming you have configured for a particular user, you can make use of:

    Code:
    Gnome-screensaver-command –q
    Gnome-screensaver-command –t
    pkill -SIGKILL -u <username>
    Force the user's session (although it is an inelegant exit, similar to pressing Ctrl + Alt + Backspace to restart X). However, you must set up cron to start the script on a regular basis, in this case, every minute.
    Well, I just establish the "gnome-schedule" package. make use of this, set it to application X, gnome-session-save, with alternative as clarify above, it seems that it works immense!

Similar Threads

  1. Auto logout on safari after sometime in iPhone
    By Cale in forum Portable Devices
    Replies: 5
    Last Post: 16-02-2011, 10:10 PM
  2. System Auto Closing in Linux Mint
    By Neutrals in forum Windows Software
    Replies: 4
    Last Post: 16-01-2011, 02:49 PM
  3. Linux Mint 10 forces for Low Graphic Mode after logout
    By Chulbul Pandey in forum Operating Systems
    Replies: 5
    Last Post: 11-01-2011, 08:43 AM
  4. Preventing auto logout in to Linux Mint
    By Waahid in forum Operating Systems
    Replies: 4
    Last Post: 03-01-2011, 07:57 PM
  5. Troubleshooting auto-mount ntfs partition in Linux Mint 10
    By Samraj in forum Operating Systems
    Replies: 3
    Last Post: 03-01-2011, 08:13 AM

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
  •  
Page generated in 1,714,048,696.72273 seconds with 17 queries