Re: Sudo question

From: Michael Cheselka (cheselka@LINUX.CACTUS.ORG)
Date: Sat Apr 17 2004 - 10:04:26 EDT


No, sudo sets up a sub-shell, executes the command( in this case
"cd"), and then exits upon the command's completion.

You might want to sudo a shell( "sudo csh" or "sudo sh") and then cd
while in the new shell or create a shell script and do the samething
in the script.

On Fri, Apr 16, 2004 at 02:02:03PM -0400, Miller, Dave (I.S.) wrote:
> When I allow someone to cd /some/directory as root, with sudo, it takes
> the command, but
> Does not make that directory current....Is there a way to do that?
>
> Thanks.

--
Michael R. M. Cheselka                     ryoohki@ryoohki.org
Itsu Made Mo "Love & Peace"                 ryoohki@spymac.com
http://www.cactus.org/~cheselka            cheselka@cactus.org


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:50 EDT