Is there a way to 'time out' a root shell (for example, in
gnome-terminal) so that after a certain amount of time not issuing any commands, the shell exits?
I'm searching for a solution that works in
bash on Fedora, and in
ksh on OpenBSD.
You can set set the
I know this question is in regards to Bash & Ksh. But I thought I would post something similar for csh/tcsh, for the record.
On FreeBSD, the default shell is tcsh. You can auto logout a session using the
The following will autologout a session after one minute of idle activity.
The tcsh(1) manpage describes it like this: