]> git.ipfire.org Git - thirdparty/bash.git/blob - doc/rbash.0
b602a70220e3bf73dce3bb5cc65f5466ee00ef82
[thirdparty/bash.git] / doc / rbash.0
1 RBASH(1) General Commands Manual RBASH(1)
2
3
4
5 N\bNA\bAM\bME\bE
6 rbash - restricted bash, see b\bba\bas\bsh\bh(1)
7
8 R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL
9 If b\bba\bas\bsh\bh is started with the name r\brb\bba\bas\bsh\bh, or the -\b-r\br option is supplied at
10 invocation, the shell becomes restricted. A restricted shell is used
11 to set up an environment more controlled than the standard shell. It
12 behaves identically to b\bba\bas\bsh\bh with the exception that the following are
13 disallowed or not performed:
14
15 +\bo changing directories with c\bcd\bd
16
17 +\bo setting or unsetting the values of S\bSH\bHE\bEL\bLL\bL, P\bPA\bAT\bTH\bH, H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE, E\bEN\bNV\bV,
18 or B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV
19
20 +\bo specifying command names containing /\b/
21
22 +\bo specifying a filename containing a /\b/ as an argument to the .\b.
23 builtin command
24
25 +\bo specifying a filename containing a slash as an argument to the
26 h\bhi\bis\bst\bto\bor\bry\by builtin command
27
28 +\bo specifying a filename containing a slash as an argument to the
29 -\b-p\bp option to the h\bha\bas\bsh\bh builtin command
30
31 +\bo importing function definitions from the shell environment at
32 startup
33
34 +\bo parsing the value of S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS from the shell environment at
35 startup
36
37 +\bo redirecting output using the >, >|, <>, >&, &>, and >> redirect-
38 ion operators
39
40 +\bo using the e\bex\bxe\bec\bc builtin command to replace the shell with another
41 command
42
43 +\bo adding or deleting builtin commands with the -\b-f\bf and -\b-d\bd options
44 to the e\ben\bna\bab\bbl\ble\be builtin command
45
46 +\bo using the e\ben\bna\bab\bbl\ble\be builtin command to enable disabled shell
47 builtins
48
49 +\bo specifying the -\b-p\bp option to the c\bco\bom\bmm\bma\ban\bnd\bd builtin command
50
51 +\bo turning off restricted mode with s\bse\bet\bt +\b+r\br or s\bse\bet\bt +\b+o\bo r\bre\bes\bst\btr\bri\bic\bct\bte\bed\bd.
52
53 These restrictions are enforced after any startup files are read.
54
55 When a command that is found to be a shell script is executed, r\brb\bba\bas\bsh\bh
56 turns off any restrictions in the shell spawned to execute the script.
57
58 S\bSE\bEE\bE A\bAL\bLS\bSO\bO
59 bash(1)
60
61
62
63 GNU Bash-4.0 2004 Apr 20 RBASH(1)