From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "Vlad" <tmd@tmd.df.ru>
Cc: <zsh-users@sunsite.auc.dk>
Subject: RE: HOW do i..
Date: Thu, 28 Dec 2000 14:27:02 +0300 [thread overview]
Message-ID: <000201c070c1$19b2c840$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <Pine.BSF.4.21.0012271057330.20973-100000@tmd.df.ru>
>
> is there a way to simultaneously log user's activity under root?
>
There is no zsh-internal way that cannot be overcome by user. As suggested,
use tty spy programs. Besides, depending on options, not everything may be
saved in history (or in wrong order).
You may use preexec function to log current command, but you cannot prevent
user from un- or re-defining it. See below.
> >
> > 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
>
???
setopt norcs
unset TRAPEXIT
I used wrong word, sorry. I did not mean "modifying zlogout". I meant, that
user can always prevent zsh from running it, can unset/change any
variable/function.
-andrej
next prev parent reply other threads:[~2000-12-28 11:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.BSF.4.21.0012261832580.18605-100000@tmd.df.ru>
2000-12-27 7:31 ` Andrej Borsenkow
2000-12-27 16:01 ` Vlad
2000-12-27 16:08 ` Thomas Köhler
2000-12-28 11:27 ` Andrej Borsenkow [this message]
2000-12-27 22:32 ` Steve Reid
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000201c070c1$19b2c840$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=tmd@tmd.df.ru \
--cc=zsh-users@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).