login as vadmin.
type a command on the bash shell
arm-elf-ar .. the command is executed
but type command using sudo
vadmin@ubu1004:~/GNU/gcc-4.1.1/built-gcc$ sudo arm-elf-ar
[sudo] password for vadmin:
sudo: arm-elf-ar: command not found
How could I configure the PATH
vadmin@ubu1004:~/GNU/gcc-4.1.1/built-gcc$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr
/local/arm/bin:/usr/local/arm/bin
arm-elf-ar locates in :/usr/local/arm/bin
vadmin@ubu1004:~/GNU/gcc
x****s 发帖数: 921
2
sudo su -
(now is root)
sudo -V
check the
Environment variables to remove:
Environment variables to preserve:
man sudoers (search for env_reset)