[sudo-workers] Add an accurate error message for "sudo cd"

Todd C. Miller Todd.Miller at sudo.ws
Mon Oct 11 10:30:58 MDT 2021


How does this look?

$ sudo cd /
sudo: cd: command not found
sudo: "cd" is a shell built-in command, it cannot be run directly.
sudo: the -s option may be used to run a privileged shell.
sudo: the -D option may be used to run a command in a specific directory.


More information about the sudo-workers mailing list