Can't do: sudo cd /var/cron/tabs
Todd C. Miller
Todd.Miller at courtesan.com
Wed Jul 16 19:05:35 EDT 2003
> 1. Why can't I cd to the tabs directory?
> 2. Why will sudo not work with cd?
>From sudo's TROUBLESHOOTING file:
Q) When I try to use "cd" with sudo it says "cd: command not found".
A) "cd" is a shell built-in command, you can't run it as a command
since a child process (sudo) cannot affect the current working
directory of the parent (your shell).
- todd
More information about the sudo-users
mailing list