I created the file /etc/profile to force sh and ksh to logout users
after a certain period of idleness:

$ cat /etc/profile

# Force sh and ksh to logout idle users after 15 minutes
# Prevent normal users from disabling this setting
readonly TMOUT=900
export TMOUT

That works great. I've tried to do the same to the other default shell
in base (csh). I added 'set autologout=15' to /etc/csh.cshrc and then to
/etc/csh.login as well (I'm turning knobs like a good clueless user).

I then read the csh man page, but saw no mention of autologout. Perhaps
the OpenBSD version of csh does not support this? Is there a way to do
this with csh? If not, I'll need to remove access to the shell.

Thanks

Brad

P.S. I only mean the local shells, not OpenSSH. I do this when required
to autologout idle ssh users:

ClientAliveInterval 900
ClientAliveMax 0

Reply via email to