Skip to main content
improve suggested edit
Source Link
Anthony Geoghegan
  • 13.6k
  • 7
  • 62
  • 66

Privileges Elevation Privilege escalation with sudo vim

I have the following problem: I

I configured sudo rules with permission ofpermissions for everything except for a few commands to, remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -isudo -i command or change the password for example. But if it passes

If someone runs the command sudo vimsudo vim and insideopens a shell from within the editor pass: shell, it manages to elevate the privilege to root. 

Does anyone know of any way to block this command, from within the editor?

Privileges Elevation with sudo vim

I have the following problem: I configured sudo rules with permission of everything except for a few commands to remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example. But if it passes the command sudo vim and inside the editor pass: shell, it manages to elevate the privilege to root. Does anyone know of any way to block this command from within the editor?

Privilege escalation with sudo vim

I have the following problem:

I configured sudo with permissions for everything except for a few commands, remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example.

If someone runs the command sudo vim and opens a shell from within the editor, it manages to elevate the privilege to root. 

Does anyone know of any way to block this command, from within the editor?

deleted 12 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 237

Hy guys,

I have the following problem: I configured sudo rules with permission of everything except for a few commands to remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example. But if it passes the command sudo vim and inside the editor pass: shell, it manages to elevate the privilege to root. Does anyone know of any way to block this command from within the editor?

Hy guys,

I have the following problem: I configured sudo rules with permission of everything except for a few commands to remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example. But if it passes the command sudo vim and inside the editor pass: shell, it manages to elevate the privilege to root. Does anyone know of any way to block this command from within the editor?

I have the following problem: I configured sudo rules with permission of everything except for a few commands to remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example. But if it passes the command sudo vim and inside the editor pass: shell, it manages to elevate the privilege to root. Does anyone know of any way to block this command from within the editor?

Source Link

Privileges Elevation with sudo vim

Hy guys,

I have the following problem: I configured sudo rules with permission of everything except for a few commands to remove, reboot, shutdown, block from sudo to shell, preventing a user from elevating the privileges with the sudo -i command or change the password for example. But if it passes the command sudo vim and inside the editor pass: shell, it manages to elevate the privilege to root. Does anyone know of any way to block this command from within the editor?