Re: Building up a shell service.

From: Blazej Kantak (parowka@vlo.ids.gda.pl)
Date: 10/24/01


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"
---------------------------------------------------------



Relevant Pages

  • osh ???
    ... recently i cheked out a sdf-eu.org shell service and the shell that ... they provide called osh ... by the way can you explain me how some shell accounters make that when you ...
    (comp.unix.shell)
  • Re: osh ???
    ... Thus spake Florent G: ... recently i cheked out a sdf-eu.org shell service and the shell that ... > they provide called osh ...
    (comp.unix.shell)