Operating System - HP-UX
1837078 Members
2341 Online
110112 Solutions
New Discussion

Passwords-timeout restrictions

 
SOLVED
Go to solution
Tom Gore
Regular Advisor

Passwords-timeout restrictions

I there a way to log somebody out of the system after a certain period of inactivity? Example: the user has not hit "Enter" for 30 minutes.

Thanks
6 REPLIES 6
Steve Steel
Honored Contributor
Solution

Re: Passwords-timeout restrictions

Hi


Set variable TMOUT

TMOUT
If this parameter is set to a value greater than zero and you do not enter another command or Return within that number of seconds, the shell terminates.


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Tom Gore
Regular Advisor

Re: Passwords-timeout restrictions

Thanks. Now for a pretty dumb question. Where can I find that parameter? I have not worked with UNIX for a while and my mind is a little fuzzy.
Rainer von Bongartz
Honored Contributor

Re: Passwords-timeout restrictions

set it system wide in /etc/profile or specific for a user in $HOME/.profile for every user


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Marco Santerre
Honored Contributor

Re: Passwords-timeout restrictions

Tom,

TMOUT is a pre-defined shell variable, just like PATH. It has a default value of 0, therefore never logging out anybody. if you include it in the general /etc/profile, or in the different .profile, it will log out these individuals after so many seconds after they last pressed enter.
Cooperation is doing with a smile what you have to do anyhow.
Paul Sperry
Honored Contributor

Re: Passwords-timeout restrictions

Add a timeout on the terminal, with getty -t
Steve Steel
Honored Contributor