Re: Building up a shell service.
From: Blazej Kantak (parowka@vlo.ids.gda.pl)Date: 10/24/01
- Previous message: Jose Nazario: "Re: Building up a shell service."
- In reply to: Praise: "Building up a shell service."
- Next in thread: Marcin D. Mikielewicz: "Re: Building up a shell service."
- Next in thread: Pekka Aleksi Knuutila: "Re: Building up a shell service."
- Reply: Marcin D. Mikielewicz: "Re: Building up a shell service."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 24 Oct 2001 18:39:30 +0200 (CEST) From: Blazej Kantak <parowka@vlo.ids.gda.pl> To: Praise <praisetazio@tiscalinet.it> Subject: Re: Building up a shell service. Message-ID: <Pine.BSO.4.33.0110241828240.24246-100000@zeus.vlo.ids.gda.pl>
On Tue, 23 Oct 2001, Praise wrote:
> I am trying to log what they write on the shell too. I think this can be
> accomplished by simply making .bash_history append only, but it does not get
> the timestamps. A better solution would be appriciated!
but users can still unset HISTFILE shell variable in their ~/.profile. I
would prefer to do something like:
typeset -rx HISTFILE=/bash_history/directory/".`whoami`-history"
typeset -rix HISTSIZE=10000
typeset -rix HISTFILESIZE=10000
typeset -rx HISTCONTROL=IGNOREBOTH
typeset -rx HISTIGNORE=""
enable -n declare
enable -n typeset
in /etc/profile.
But if user kill his bash process (kill -KILL <pid>), nothing would be
written in bash_history.
Maybe installing the snoopy package would solve that issue.
b. Parowka K.
---------------------------------------------------------
Email address : pascal@ids.gda.pl
"Everything what we do see is a past"
---------------------------------------------------------
- Previous message: Jose Nazario: "Re: Building up a shell service."
- In reply to: Praise: "Building up a shell service."
- Next in thread: Marcin D. Mikielewicz: "Re: Building up a shell service."
- Next in thread: Pekka Aleksi Knuutila: "Re: Building up a shell service."
- Reply: Marcin D. Mikielewicz: "Re: Building up a shell service."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|