We are in the early stages of standardizing our infra. As an immediate step, we want to restrict users from manipulating the history. Have setup some restrictions for the same. But recently found that there are couple of loop holes.
- Users can remove the history entry by just running 'history -d '
- 'set +o history' will stop the history file from being updated.
I am finding ways to restrict users from running this command. I can't think of a way out for this.
Any suggestions will be helpful. Please let me know if something isn't clear. Thanks.
We are using CentOS and our shell is bash
-Ram Kumar