I will try to explain my situation first. I am currently running 6 virtualized Debian servers on a ESXi host machine. The virtual servers where installed with a Debian Linux 6 (Lenny).
Recently I updated the servers to debian Wheezy
[email protected]> lsb_release -a /home/vincent No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 7.1 (wheezy) Release: 7.1 Codename: wheezy
it has come to my attention that since this upgrade the ‘sudo’ command is displaying weird behaviour. Actually, it seems to have no effect at all. I checked the /etc/visudo file and everything seems ok. Sudo also asks for my password but then does not seem to run things as root.
An example is the ‘ifconfig’ command:
[email protected]> ifconfig zsh: command not found: ifconfig  [email protected]> sudo ifconfig sudo: ifconfig: command not found  [email protected]> sudo su [email protected]>ifconfig output shows
anyone who can help me out here?
PATH probably differs between your normal user and the root user, likely missing directories such as
/usr/sbin where administrative utilities like
ifconfig normally live.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.