The restricted shell is not completely secure[]
The restricted shell is not completely secure. A user can break out of the restricted environment by running a program that features a shell function. The following is an example of the shell function in vi being used to escape from the restricted shell:
vi
- set shell=/bin/sh
- shell