How to block sudo -i in sudoers file
Hi,
How to block sudo -i in sudoers file ? |
Something like "user-spec host-spec = command_spec, !/usr/bin/sudo *-i*"?
|
I tried as user ALL=(ALL), !/usr/bin/sudo *-i* but its not working.Can you suggest any other solution ?
|
Quote:
|
Actually " sudo -i " needs to be block for the users where they have sudo access but need to block sudo -i so that users can only access certain task through sudo with only their username as " sudo - <username " & not through "sudo -i" as there are many options to login through sudo.
|
All times are GMT -5. The time now is 01:13 PM. |