Can't do: sudo cd /var/cron/tabs

Rick Barter rvb01 at zeus.zeroimpact.org
Wed Jul 16 18:51:53 EDT 2003


Below you'll see that I'm trying to cd to the /var/cron/tabs
directory.  For some reason I cannot do it.  I assumed this was
because I was not root.  Therefore, I try to use sudo.  However, sudo
doesn't work with cd.  Can someone help me understand the following:

 1.  Why can't I cd to the tabs directory?
 2.  Why will sudo not work with cd?

Your help is appreciated.

rvb

valhalla: /var/cron $ ll
total 1
dr-xr-xr-x   3 root  wheel   512 Jul 16 17:26 ./
drwxr-xr-x  24 root  wheel   512 Oct  1  2001 ../
-rw-------   1 root  wheel   434 Jul 16 17:40 log
-rw-------   1 root  wheel  1079 Jul 16 17:00 log.0.gz
-rw-------   1 root  wheel  1172 Jul 16 03:00 log.1.gz
-rw-------   1 root  wheel  1158 Jul 15 13:00 log.2.gz
-rw-------   1 root  wheel  1073 Jul 14 23:00 log.3.gz
drwx------   2 root  wheel   512 Mar 10 16:59 tabs/
valhalla: /var/cron $ cd tabs
ksh: cd: /var/cron/tabs - Permission denied
valhalla: /var/cron $ sudo cd tabs
sudo: cd: command not found
valhalla: /var/cron $ 


More information about the sudo-users mailing list