How to run sudo command as root?

I only have root access to my server, so the sudo command does not work. I try to run a command that tries to use the sudo command, and since I already have root access, it fails.

command not found: sudo chmod + x / usr / local / bin / wkhtmltopdf

Is there a way I can run this command? Can I somehow get away from the root or force root to use the sudo command temporarily?

+3
source share
6 answers

Just tried it and it worked for me
(on Mandriva Linux, other distributions should not be different).

sudo?
.

+4

sudo, root. sudo.

sudo - root .

+4

root, sudo?

chmod +x /usr/local/bin/wkhtmltopdf
+1

, sudo, root. - - , , root, root-, sudo. , sudo whereis sudo root. sudo :

/usr/bin/sudo

, script: /usr/bin/sudo shutdown -h now

+1
source

"Can I somehow get away from the root?"

You can create another user account and log in to it.

0
source

It looks like you did not install sudo:

command not found: sudo chmod + x / usr / local / bin / wkhtmltopdf

Just install it! sudo should be configured by default to allow calling its root without even asking for a password ...

0
source

Source: https://habr.com/ru/post/1758709/


All Articles