I have been asked to implement sudo rules such that a non privileges user should be able to switch to other users but not root. i tried couple of things as below but with no avail.
Cmnd_Alias SU = /bin/su - root %XXXX_GROUP ALL=(!root) NOPASSWD: ALL, !SU, !ADMIN, !SHELLS =============================================================== Cmnd_Alias SU = /bin/su - !root %XXXX_GROUP ALL=(ALL) NOPASSWD: ALL, SU, !ADMIN, !SHELLS ================================================================
I have searched a lot but could not find any solution or similar questions. Can you please help me in this regard?
Thanks in advance