Bash Sudo Command Not Found Error

bashsudo

I have set up a VM using turnkey linux redmine and I'm trying to SSH into the server to install some more items.

It doesn't appear to be recognizing the sudo command. Every time I try to sudo something I get an error saying:

 -bash: sudo: command not found

I read somewhere else to type 'whereis sudo' and the output was:

 sudo:

Best Answer

It looks from http://www.turnkeylinux.org/redmine like Redmine, unlike Ubuntu, does not use sudo by default. What username are you using to SSH in? If it's root, then you don't need to use sudo, as everything you do when SSHed in to the Redmine system is done as root. If it's something else, like admin, then you could try using the su command to get a root shell in which to run commands as root.

Related Question