bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: logging all users command ? via history ?


From: Paul Jarc
Subject: Re: logging all users command ? via history ?
Date: Fri, 26 Oct 2001 11:16:22 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Gerik <fgerik@relay3.jaring.my> wrote:
> So, my question is how do we log users command in bash shell.

It's probably best to do it from outside bash altogether.  A system
call trace (strace/ktrace/truss) of bash will show the external
commands it executed, with arguments (on some OSes).

> My question is, how do we set the value of HISTFILE so that we can
> put the history to somewhere which is unmodifiable/unwritable by users ?

It doesn't matter, because users will be able to change the variable
to something else.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]