Penguin
Annotated edit history of rbash(1) version 3, including all changes. View license author blame.
Rev Author # Line
3 AristotlePagaltzis 1 !!! NAME
2 NeilMcGovern 2
3 AristotlePagaltzis 3 rbash - restricted bash, see bash(1)
2 NeilMcGovern 4
3 AristotlePagaltzis 5 !!! RESTRICTED SHELL
1 perry 6
3 AristotlePagaltzis 7 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:
1 perry 8
3 AristotlePagaltzis 9 * changing directories with <tt>cd</tt>
10 * setting or unsetting the values of <tt>SHELL</tt>, <tt>PATH</tt>, <tt>ENV</tt>, or <tt>BASH_ENV</tt>
11 * specifying command names containing <tt>/</tt>
12 * specifying a file name containing a <tt>/</tt> as an argument to the <tt>.</tt> builtin command
13 * Specifying a filename containing a slash as an argument to the <tt>-p</tt> option to the hash builtin command
14 * importing function definitions from the shell environment at startup
15 * parsing the value of <tt>SHELLOPTS</tt> from the shell environment at startup
16 * redirecting output using the <tt>></tt>, <tt>>|</tt>, <tt><></tt>, <tt>>&</tt>, <tt>&></tt>, and <tt>>></tt> redirection operators
17 * using the exec builtin command to replace the shell with another command
18 * adding or deleting builtin commands with the <tt>-f</tt> and <tt>-d</tt> options to the enable builtin command
19 * Using the enable builtin command to enable disabled shell builtins
20 * specifying the <tt>-p</tt> option to the command builtin command
21 * turning off restricted mode with set <tt>+r</tt> or set <tt>+o</tt> restricted.
1 perry 22
3 AristotlePagaltzis 23 These restrictions are enforced after any startup files are read.
1 perry 24
3 AristotlePagaltzis 25 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.
2 NeilMcGovern 26
3 AristotlePagaltzis 27 !!! SEE ALSO
2 NeilMcGovern 28
3 AristotlePagaltzis 29 bash(1)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.