Differences between version 3 and previous revision of rbash(1).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 3 | Last edited on Tuesday, November 9, 2004 2:46:30 am | by AristotlePagaltzis | Revert |
Older page: | version 2 | Last edited on Friday, November 5, 2004 5:28:27 am | by NeilMcGovern | Revert |
@@ -1,54 +1,29 @@
-RBASH
-
!!!RBASH
+!!! NAME
-NAME
-
rbash - restricted bash, see bash(1)
+rbash - restricted bash, see bash(1)
-RESTRICTED SHELL
- If bash is started with the name rbash, or the -r 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:
+!!!
RESTRICTED SHELL
- * changing directories
with cd
+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:
-
*
setting or unsetting the values of SHELL, PATH, ENV, or BASH_ENV
+* 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.
- * specifying command names containing /
+These restrictions are enforced after any startup files are read.
- * specifying
a file name containing
a / as an argument
to
the
.
- builtin command
+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
.
- * Specifying a filename containing a slash as an argument to the
- -p option to the hash builtin command
+!!! SEE ALSO
- * importing function definitions from the shell environment at
- startup
-
- * parsing the value of SHELLOPTS from the shell environment at
- startup
-
- * redirecting output using the >, >|, <>, >&, &>, and >> redirec-
- tion operators
-
- * using the exec builtin command to replace the shell with another
- command
-
- * adding or deleting builtin commands with the -f and -d options
- to the enable builtin command
-
- * Using the enable builtin command to enable disabled shell
- builtins
-
- * specifying the -p option to the command builtin command
-
- * turning off restricted mode with set +r or set +o 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)
+bash(1)