There was an innocent query about sudo in this list. (Never mind why you want to do a sudo cd)
I tried it out and am frankly baffled. Let us say I am NOT root, and I have a directory mydir. cd mydir and it works fine (mydir has the same privileges like me, since I own it). sudo cd mydir and I get "sudo: cd: command not found" (after I give root password). OKay.. Now I do a su (and give the root password when asked). Now do cd mydir and it works fine. Let my say that my default privilege for all files/directories is 755. I can't explain why this happens. Can some guru explain what is happening ? Many thanks, partha -- l...@iitd - http://tinyurl.com/ycueutm
