When using 'bash -r' or 'set -r' in .bashrc the user can call another
shell and the restrictions such as 'cd' no longer apply until you exit the
new shell and return to the restricted environment. When a second shell is
called the restrictions fail (I though calling bash by name (not a sym link)
was working but now even that allows an escape. This may be specific to Red
Hat 8 and may be a problem with their compiled rpm, but I felt it is
important.
It is incumbent on the system administrator to make sure that the PATH is
set appropriately when a restricted shell is run.
Using `bash -r' or `set -r' in .bashrc is probably not the best way to
start a
restricted shell; use `rbash' as the login shell instead.
Chet
[Prev in Thread]
Current Thread
[Next in Thread]
Re: restricted shell allows escape to child,
Chet Ramey<=