Answer the question
In order to leave comments, you need to log in
How to shadow copy records to a file?
You need to keep track of changes made to .bash_history so that you can see which lines the user has deleted from this file. Those. some background program or service is supposed to be launched, which is guaranteed to save all commands entered by the root user. Perhaps you can recommend some spyware.
PS In principle, this task is not difficult to implement and most with the help of the poll system call
Answer the question
In order to leave comments, you need to log in
inotify, and in general if the user has root, he can do anything.
+ Commands starting with a space are not written to history!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question