Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: HOW do i..
- X-seq: zsh-users 3577
- From: Vlad <tmd@xxxxxxxxx>
- To: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- Subject: RE: HOW do i..
- Date: Wed, 27 Dec 2000 11:01:36 -0500 (EST)
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <000001c06fd7$1134f930$21c9ca95@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
> I suspect, you want
>
> - get log of all user activity
> - prevent user from modifying this log
>
> This can't be done, sorry. To save history entries in a file, this file should
> be user-writable. It does not matter, whom this file belongs to. History file
> is written (if at all) after every command. It means, user can edit it at any
> time and remove any entries. This applies to any logging.
is there a way to simultaneously log user's activity under root?
>
> The most you can do is to use fc command to write *current* entries (up to
> HISTSIZE) to some file at logout. But, how can you prevent user from modifying
> .logout, TRAPEXIT ot whatever?
-rw-r--r-- 1 root wheel 87 Dec 26 19:42 /etc/zshrc
>
> -andrej
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author