Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run sudo command as root?

I only have root access to my server and the sudo command therefore does not work. I am trying to run a command that tries to use the sudo command and as I already have root access, it fails.

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

Is there a way that I can get this command to run? Can I move out of root somehow, or make root temporarily able to use the sudo command?

like image 308
amaseuk Avatar asked Jul 23 '26 15:07

amaseuk


1 Answers

You don't need sudo if you already are root. Just remove the word sudo.

sudo is a tool to get root access as a normal user.

like image 95
Alexander Kjäll Avatar answered Jul 26 '26 22:07

Alexander Kjäll



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!