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: Gerik
Subject: Re: logging all users command ? via history ?
Date: Sat, 27 Oct 2001 13:20:46 +0100

thanks paul,
may be i need to utilize BSM for my Sun machine but still have no options
for my BSDi machines...

tq,
--fared

Paul Jarc wrote:

> Gerik <address@hidden> 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]