Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
rbash(1)
Edit
PageHistory
Diff
Info
LikePages
!!! NAME rbash - restricted bash, see bash(1) !!! RESTRICTED SHELL If bash is started with the name rbash, or the <tt>-r</tt> option is supplied at invocation, the shell becomes restricted. A restricted shell is used to set up an environment more controlled than the standard shell. It behaves identically to bash with the exception that the following are disallowed or not performed: * changing directories with <tt>cd</tt> * setting or unsetting the values of <tt>SHELL</tt>, <tt>PATH</tt>, <tt>ENV</tt>, or <tt>BASH_ENV</tt> * specifying command names containing <tt>/</tt> * specifying a file name containing a <tt>/</tt> as an argument to the <tt>.</tt> builtin command * Specifying a filename containing a slash as an argument to the <tt>-p</tt> option to the hash builtin command * importing function definitions from the shell environment at startup * parsing the value of <tt>SHELLOPTS</tt> from the shell environment at startup * redirecting output using the <tt>></tt>, <tt>>|</tt>, <tt><></tt>, <tt>>&</tt>, <tt>&></tt>, and <tt>>></tt> redirection operators * using the exec builtin command to replace the shell with another command * adding or deleting builtin commands with the <tt>-f</tt> and <tt>-d</tt> options to the enable builtin command * Using the enable builtin command to enable disabled shell builtins * specifying the <tt>-p</tt> option to the command builtin command * turning off restricted mode with set <tt>+r</tt> or set <tt>+o</tt> restricted. These restrictions are enforced after any startup files are read. When a command that is found to be a shell script is executed, rbash turns off any restrictions in the shell spawned to execute the script. !!! SEE ALSO bash(1)
One page links to
rbash(1)
:
Man1r
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.