Страница 1 из 1

autologout

Добавлено: 2009-06-12 15:20:06
weec
как можно организовать сабж?

Re: autologout

Добавлено: 2009-06-12 15:47:35
f_andrey
Поразному :st:

Re: autologout

Добавлено: 2009-06-12 15:52:33
Гость

Код: Выделить всё

root@[/]# echo $SHELL
/bin/tcsh

root@[/]# cat ~/.cshrc|grep logout
        set autologout=30

Код: Выделить всё

man tcsh /autologout
autologout (+)
The first word is the number of minutes of inactivity before
automatic logout. The optional second word is the number of
minutes of inactivity before automatic locking. When the shell
automatically logs out, it prints `auto-logout', sets the vari-
able logout to `automatic' and exits. When the shell automati-
cally locks, the user is required to enter his password to con-
tinue working. Five incorrect attempts result in automatic
logout. Set to `60' (automatic logout after 60 minutes, and no
locking) by default in login and superuser shells, but not if
the shell thinks it is running under a window system (i.e., the
DISPLAY environment variable is set), the tty is a pseudo-tty
(pty) or the shell was not so compiled (see the version shell
variable). See also the afsuser and logout shell variables.

Re: autologout

Добавлено: 2009-06-12 15:53:20
terminus
login.conf sessiontime ?

Re: autologout

Добавлено: 2009-06-13 0:05:38
Гость
тогда уж idletime, а не sessiontime. autologout ориентируется на время простоя, а не общее время сессии.

Интересно кто будет посылать сигнал отключения, например, если проводит аутентификацию xdm(1), а не login(1).