/bin/bash in sudoers allows root access to a user????
"Martin, Denis (Consultant)" <[email protected]>
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <YTXPR0101MB19658FCDC4DF2976BF3A8941DA170@YTXPR0101MB1965.CANPRD01.PROD.OUTLOOK.COM> |
Hi all, I came across a strange behavior of sudo. We have created an account for Rapis7 Nexpose software to allow it to scan our machines for vulnerabilities as well as CIS security. The software needs to have access to multiple commands with root privileges. To do so, we have added the commands to our sudoers file. While doing some trouble shooting for another thing I issued "sudo -i" using that account instead of mine and got stunned when I got access to the root account! All our other sudo users don't have access to root by issuing "sudo -i". I looked in the sudoers file to find what was specific to that user and found that the command "/bin/bash" is THE ONE giving root access to that user as well as to the other users that are part of the same group. I confirmed this by removing that command from the sudoers file and notice that root access is no longer granted to that user. Why is including "/bin/bash" in the sudoers file allows root access with "sudo -I"??? "/bin/sh" and "/bin/ksh" don't allow it... Thanks, have a great day! Merci et... Bonne journée! Alerte vacances, veuillez noter que je serai en vacances du 22 juin au 2 juillet inclusivement. ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users