174 lines
2.9 KiB
HTML
174 lines
2.9 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of RBASH</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>RBASH</H1>
|
|
Section: User Commands (1)<BR>Updated: 2004 Apr 20<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
rbash - restricted bash, see <B><A HREF="/cgi-bin/man/man2html?1+bash">bash</A></B>(1)
|
|
<A NAME="lbAC"> </A>
|
|
<H2>RESTRICTED SHELL</H2>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
If
|
|
<B>bash</B>
|
|
|
|
is started with the name
|
|
<B>rbash</B>,
|
|
|
|
or the
|
|
<B>-r</B>
|
|
|
|
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
|
|
<B>bash</B>
|
|
|
|
with the exception that the following are disallowed or not performed:
|
|
<DL COMPACT>
|
|
<DT id="1">•<DD>
|
|
changing directories with <B>cd</B>
|
|
<DT id="2">•<DD>
|
|
setting or unsetting the values of
|
|
<FONT SIZE="-1"><B>SHELL</B>,
|
|
|
|
</FONT>
|
|
<FONT SIZE="-1"><B>PATH</B>,
|
|
|
|
</FONT>
|
|
<FONT SIZE="-1"><B>ENV</B>,
|
|
|
|
</FONT>
|
|
or
|
|
<FONT SIZE="-1"><B>BASH_ENV</B>
|
|
|
|
</FONT>
|
|
<DT id="3">•<DD>
|
|
specifying command names containing
|
|
<B>/</B>
|
|
|
|
<DT id="4">•<DD>
|
|
specifying a filename containing a
|
|
<B>/</B>
|
|
|
|
as an argument to the
|
|
<B>.</B>
|
|
|
|
builtin command
|
|
<DT id="5">•<DD>
|
|
specifying a filename containing a slash as an argument to the
|
|
<B>-p</B>
|
|
|
|
option to the
|
|
<B>hash</B>
|
|
|
|
builtin command
|
|
<DT id="6">•<DD>
|
|
importing function definitions from the shell environment at startup
|
|
<DT id="7">•<DD>
|
|
parsing the value of
|
|
<FONT SIZE="-1"><B>SHELLOPTS</B>
|
|
|
|
</FONT>
|
|
from the shell environment at startup
|
|
<DT id="8">•<DD>
|
|
redirecting output using the >, >|, <>, >&, &>, and >> redirection operators
|
|
<DT id="9">•<DD>
|
|
using the
|
|
<B>exec</B>
|
|
|
|
builtin command to replace the shell with another command
|
|
<DT id="10">•<DD>
|
|
adding or deleting builtin commands with the
|
|
<B>-f</B>
|
|
|
|
and
|
|
<B>-d</B>
|
|
|
|
options to the
|
|
<B>enable</B>
|
|
|
|
builtin command
|
|
<DT id="11">•<DD>
|
|
using the <B>enable</B> builtin command to enable disabled shell builtins
|
|
<DT id="12">•<DD>
|
|
specifying the
|
|
<B>-p</B>
|
|
|
|
option to the
|
|
<B>command</B>
|
|
|
|
builtin command
|
|
<DT id="13">•<DD>
|
|
turning off restricted mode with
|
|
<B>set +r</B> or <B>set +o restricted</B>.
|
|
</DL>
|
|
<P>
|
|
|
|
These restrictions are enforced after any startup files are read.
|
|
<P>
|
|
|
|
When a command that is found to be a shell script is executed,
|
|
|
|
<B>rbash</B>
|
|
|
|
turns off any restrictions in the shell spawned to execute the
|
|
script.
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<A HREF="/cgi-bin/man/man2html?1+bash">bash</A>(1)
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="14"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="15"><A HREF="#lbAC">RESTRICTED SHELL</A><DD>
|
|
<DT id="16"><A HREF="#lbAD">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:26 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|