bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Found way to change directory in rbash!


From: Chet Ramey
Subject: Re: Found way to change directory in rbash!
Date: Mon, 1 Oct 2018 09:06:12 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.9.1

On 10/1/18 8:04 AM, address@hidden 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    address@hidden    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]