I've recently upgraded my server to Ubuntu Server 12.04. Previously it was running 11.04.
Ever since then I've been having trouble carrying out root user commands through sudo. An example of this would be:
> sudo ufw status sudo: ufw: command not found > sudo su - root > ufw status Status: active To Action From -- ------ ---- OpenSSH LIMIT Anywhere
With Ubuntu 11.04 the plain
sudo ufw status worked fine, but with Ubuntu 12.04 it can't find the command.
This seems to just be a problem with the PATH not being set (
ufw is found in
What I'm trying to understand is what I need to change back so that root's PATH is set correctly when I just
sudo <sbin command>?