[sudo-users] cd problems

Bob Proulx bob at proulx.com
Mon Feb 28 18:00:48 EST 2005

> >From the FAQ:
> Q) When I try to use "cd" with sudo the command completes without
>    errors but nothing happens.
> A) Some SVR4-derived OS's include a /usr/bin/cd command for reasons
>    unfathomable.  A "cd" command is totally useless since a child process
>    cannot affect the current working directory of the parent (your shell).

A few may find this discussion useful.


Summary: Should the GNU coreutils provide a 'cd' command?  POSIX seems
to require it.  And if implemented how to do so best.


More information about the sudo-users mailing list