I want to invoke the rootsh also when the regular user uses
by pkulkarni from LinuxQuestions.org on (#5D16R)
Now, I installed rootsh on a test server and it works fine when called the normal way (sudo rootsh). However I want to invoke the rootsh also when the regular user uses.
I want since that non-root user is used for normal day to day activity. I just want to redirect all possible instances of su (sudo su -, sudo su, su - and su) redirected to rootsh, so that when that users changes to root, his activities are logged.


I want since that non-root user is used for normal day to day activity. I just want to redirect all possible instances of su (sudo su -, sudo su, su - and su) redirected to rootsh, so that when that users changes to root, his activities are logged.