Restricted shells can be invoked in any of the following ways:
Restricted shells can also be set up by supplying
in the shell field of
or by using them as the value for the SHELL variable.
Restricted shells act the same as their non-restricted
counterparts, except that the following are prohibited:
Changing directory (i.e., using
Setting the PATH variable.
prohibits setting ENV and SHELL.
for command names or pathnames.
Redirecting output (i.e., using
Shell scripts can still be run, since in that case
the restricted shell will call
to run the script.