Kernel 2.6.21.5, Slackware 12.0
Hi:
Code:
# cat /etc/sudoers
root ALL = (ALL) ALL
pete ALL = (ALL) NOPASSWD: ALL
Code:
pete$ ls /root
permission denied
pete$ sudo ls /root
loadlin.txt loadlin.zip
pete$ cd /root
-bash: cd: /root: Permission denied
pete$ sudo cd /root
sudo: cd: command not found
pete$
On the other hand
Code:
pepe$ echo $SHELL
/usr/bin/bash
pepe$ sudo echo $SHELL
/usr/bin/bash
So, I do not understand why the notification "sudo: cd: command not found", considering cd is a bash built-in command. Any suggestion will be welcome.