Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

RE: HOW do i..



> 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