Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14681

Re: Found way to change directory in rbash!

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Found way to change directory in rbash!
Date 2018-10-01 09:06 -0400
Message-ID <mailman.1614.1538399186.1284.bug-bash@gnu.org> (permalink)
References <20181001120452.172232827FA@bobi-HP-xw4300-Workstation>

Show all headers | View raw


On 10/1/18 8:04 AM, boris.valkovski@gmail.com wrote:

> Bash Version: 4.4
> Patch Level: 12
> Release Status: release
> 
> Description:
> 	As you know, the cd command is restricted when running rbash.Well, 
>         the PWD variable can be modified, so directory can be changed.
> Repeat-By:
> 	I ran rbash, so cd was restricted.Then I tried to modify the PWD
>         variable, and I changed the current working directory successfully.

That doesn't change the current working directory. The shell is still in
the same directory it was before.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Found way to change directory in rbash! Chet Ramey <chet.ramey@case.edu> - 2018-10-01 09:06 -0400

csiph-web