|
If a privileged user deletes commands or you expect it to happen, that means you've got a trust problem. If you can't trust this user to do a job w/o the need for you constantly checking, then deny the user access to privileged accounts. If that is not an option you can get some initial coverage (not everything and not for long), but since the user is in the root group circumvention is easy anyway once he/she finds out you've been logging.
So, maybe it would be good if you explained why you need this before we try to offer more detailed suggestions. Depending on decay (for instance disk I/O and time) you may be able to undelete snippets of .bash_history when not shredded or linked to /dev/null or something like that, but it's more like forensics stuff (slow, tedious and no guarantee of result).
|