Re: logging

From: Kasper Dupont (kasperd@daimi.au.dk)
Date: 01/30/02

  • Next message: ujay: "Re: How to "save" the current iptables setup"

    From: Kasper Dupont <kasperd@daimi.au.dk>
    Date: Wed, 30 Jan 2002 18:34:11 +0100
    
    

    Skibi de LaPies wrote:
    >
    > Kasper Dupont <kasperd@daimi.au.dk> wrote...
    >
    > > Usually bash writes the commands to its history file no matter
    > > which tty it is runing on. But if you have an intruder he
    > > could easilly remove commands from .bash_history, in addition
    > > to that, bash has a command to enable and disable saving of
    > > commands in the history.
    > As I'm a rookie, I don't know any command that does so,

    set +o history
    set -o history

    > but the problem is
    > not logging on, when one is on tty, it logs, the problem is, that nothing is
    > written when one works remotely, or does a sudo or su, no trace, no history.

    Strange, whenever I use bash it always saves the history,
    unless I explicitly turns it off.

    > Even if I do so, and try to see the history after logout.
    > greetz
    > Skibi de LaPies

    -- 
    Kasper Dupont
    For sending spam use mailto:razor-report@daimi.au.dk
    



    Relevant Pages

    • Re: how can I write shell history immediately to HISTFILE
      ... The bash internal command "history" can be told to append ... This will append every new command to the history file, ... Lots of times I notice commands are not present that I thought should ... Read the bash manpage and look up HISTCONTROL. ...
      (comp.unix.shell)
    • Re: Common History across Shell
      ... maintains its individual history in memory. ... If there are multiple shells running together then commands entered in ... one can't be accessed using history command from other shells. ... Does such a feature exist in bash or any other shell? ...
      (comp.unix.shell)
    • RE: save commands history.
      ... > the commands ... >> from that login sessoin. ... bash will write the command history ... wrapper around bash to not use the history -c or else to output ...
      (RedHat)
    • bash history customizing
      ... I really like my bash history facility, so much so that i have about ... I would like to prevent invalid commands from being ... cp somefile anotherfile ...
      (comp.unix.misc)
    • bash history customizing
      ... I really like my bash history facility, so much so that i have about ... I would like to prevent invalid commands from being ... cp somefile anotherfile ...
      (comp.unix.shell)