dicas shell: auto-logout com TMOUT
Se você setar a variável TMOUT=1800 no seu sistema, o bash vai encerrar a sessão se ela estiver inativa há mais de 30 minutos, evitando que você esqueça a máquina logada, você pode por exemplo colocar esta variável no /etc/bash.bashrc e sempre que um usuário logar no sistema ela será carregada.
[]’s
Guto
This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar To change this standard text, you have to enter some information about your self in the
Dashboard ->
Users ->
Your Profile box.
Tags: bash
This entry was posted
on quarta-feira, setembro 10th, 2008 at 18:02 and is filed under softwarelivre.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
setembro 11th, 2008 at 15:46
Gostaria de saber em qual linha do arquivo bash.bashrc, eu insiro tal variável ??????????
att.
Sander
setembro 11th, 2008 at 17:31
Sander,
Vá até a última linha, de um enter, coloque a linha, salve o arquivo, e depois digite:
source /etc/bash.bashrc
[]’s
Guto
novembro 19th, 2008 at 21:24
Ótima dica… principalmente pra mim que sempre esqueço que deixei o pc logado quando vou tomar água :-y