[sudo-users] Problem with CD command while using sudo

Russell Van Tassell russell+sudo-users at loosenut.com
Fri Jul 29 02:50:25 EDT 2005

On Tue, Jul 19, 2005 at 11:51:07PM +0530, Mousumi wrote:
> Hi,
> I have installed sudo in one of the machines and configured various groups.
> In the visudo file, cd is listed as the command which
> can be used by all the groups. When executed cd under sudo, change directory
> does not happen. No error is reported, but the
> directory does not change. Any thoughts on how to resolve this issue?

In some shells, cd is an instrinsic, and in others it is a shell script
which simply changes the cwd variable or some other PFM.  Why, however,
would you need to make cd a "sudo" command?  Wouldn't "ls" or something
else be a little more useful? (someone that cd's in to a directory that
they aren't normally able to still won't be able to read it - so it's
pretty useless, IMO)

Russell M. Van Tassell
russell at loosenut.com

"There are no significant bugs in our released software that any
 significant number of users want fixed"                    - Bill Gates

More information about the sudo-users mailing list