|
|
Line 2,831: |
Line 2,831: |
|
| |
|
| == RESTRICTED SHELL == | | == 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:
| | bashをrbashという名前で起動するか、起動時に-rオプションを指定すると、シェルは制限付きになる。 制限付きシェルは、標準シェルよりも制御された環境を設定するために使用される。 動作はbashと同じだが、例外として以下のことが禁止または実行されない: |
|
| |
|
| * changing directories with cd | | * cdでディレクトリを変更する |
| * setting or unsetting the values of SHELL, PATH, HISTFILE, ENV, or BASH_ENV | | * '''SHELL'''、'''PATH'''、'''HISTFILE'''、'''ENV'''、'''BASH_ENV'''の値を設定または解除する。 |
| * specifying command names containing / | | * / を含むコマンド名を指定する。 |
| * specifying a filename containing a / as an argument to the . builtin command | | * .builtinコマンドの引数として、/を含むファイル名を指定する。 |
| * specifying a filename containing a slash as an argument to the history builtin command | | * スラッシュを含むファイル名をhistory組み込みコマンドの引数として指定する。 |
| * specifying a filename containing a slash as an argument to the -p option to the hash builtin command | | * hash組み込みコマンドの-pオプションの引数として、スラッシュを含むファイル名を指定する。 |
| * importing function definitions from the shell environment at startup | | * 起動時にシェル環境から関数定義をインポートする。 |
| * parsing the value of SHELLOPTS from the shell environment at startup | | * 起動時にシェル環境からSHELLOPTSの値を解析する。 |
| * redirecting output using the >, >|, <>, >&, &>, and >> redirection operators | | * リダイレクト演算子 >, >|, <>, >&, &>, >> を使って出力をリダイレクトする。 |
| * using the exec builtin command to replace the shell with another command | | * exec組み込みコマンドを使用して、シェルを別のコマンドに置き換える。 |
| * adding or deleting builtin commands with the -f and -d options to the enable builtin command | | * enable 組み込みコマンドに -f および -d オプションをつけて、組み込みコマンドを追加または削除する。 |
| * using the enable builtin command to enable disabled shell builtins | | * enable builtinコマンドを使用して、無効になっているシェル組み込みコマンドを有効にする。 |
| * specifying the -p option to the command builtin command | | * command組み込みコマンドに-pオプションを指定する。 |
| * turning off restricted mode with set +r or set +o restricted. | | * set +r または 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 (see COMMAND EXECUTION above), rbash turns off any restrictions in the shell spawned to execute the script.
| | シェルスクリプトであることが判明したコマンドが実行されると(上記の[[#COMMAND EXECUTION|COMMAND EXECUTION ]]を参照)、rbashはスクリプトを実行するために生成されたシェルの制限をすべてオフにする。 |
|
| |
|
| == SEE ALSO == | | == SEE ALSO == |