Re: How to log all commands?

From: Martin Vaeth (vaeth_at_mathematik.uni-wuerzburg.de)
Date: 05/31/05


Date: 30 May 2005 22:01:22 GMT

c0ntex <c0ntexB@gmail.com> wrote:
> Also unsetting the HISTFILE or HISTSIZE variables will
> tamper with logging, so make sure to set them "readonly".

This is only annoying for the users and does not prevent them
to execute unlogged commands anyway if they really want to
(unless they have almost no permissions at all).
For example, users might simply execute their commands in a script
or open a new bash in which the above variables are not readonly
(observe that the readonly status of variables is not exported),
execute their own modified version of bash etc.



Relevant Pages

  • Re: [ Attn: Randy ] Ad-hoc Parsing?
    ... One of the biggest advantages of Unix-like shells ... > flexible as the Unix scripts using the more powerful ... about bash, which being a fully-capable shell, can launch programs ... > execute the com program itself). ...
    (alt.lang.asm)
  • Re: file permissions
    ... > and stumbled across a bash script operation ... > called fileperm. ... > If I attempt to execute the file. ...
    (comp.os.linux.misc)
  • Re: Linux Command: time NO OUTPUT POSSIBLE
    ... By creating the new bash it has worked. ... But I want to execute it automaticall and therefore I have decided to ... I don't have any objection to using the GNU time program (in fact I ... The previous line says that when you execute your script (i.e., ...
    (comp.os.linux.setup)
  • Re: the difference between binary file and ASCII file
    ... > peter wrote: ... >> how can a unix shell detect that it is not an execuable binary ... > execute some file. ... which calls execwill send it to bash. ...
    (comp.unix.shell)
  • Re: profile
    ... different (depending on options given to bash when it is started). ... and execute other profiles, such as profiles in /etc/profile.d or ~/.bashrc. ... > Profiles read are dependent upon the shell you execute, ...
    (RedHat)