From 4dc0202460d52122b209c0fa03f5d31551820a1c Mon Sep 17 00:00:00 2001 From: sadboyzvone Date: Thu, 16 Nov 2017 22:40:05 +0100 Subject: [PATCH 1/6] rbash: add page --- pages/common/rbash.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages/common/rbash.md diff --git a/pages/common/rbash.md b/pages/common/rbash.md new file mode 100644 index 000000000..83395fd3d --- /dev/null +++ b/pages/common/rbash.md @@ -0,0 +1,32 @@ +# rbash + +> Restricted Bash shell +> Restrictions implemented in rbash +> cd command +> PATH and ENV (setting/unsetting) +> Importing function +> Specifying file name containing argument ‘/’ +> Specifying file name containing argument ‘-‘ +> Redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘ +> Turning off restriction using ‘set +r‘ or ‘set +o‘ + +- Start rbash: + +`rbash` + +- Execute a command: + +`rbash -c "{{command}}"` + +- Run commands from a file: + +`rbash {{file.sh}}` + +- Print the version information of rbash: + +`rbash --version` + + + + + From 373bdf198262f0080b04f6c756b6fbfd7854236f Mon Sep 17 00:00:00 2001 From: sadboyzvone Date: Thu, 16 Nov 2017 22:46:57 +0100 Subject: [PATCH 2/6] rbash: fix for lint --- pages/common/rbash.md | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/pages/common/rbash.md b/pages/common/rbash.md index 83395fd3d..a65ef5235 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,14 +1,14 @@ # rbash -> Restricted Bash shell -> Restrictions implemented in rbash -> cd command -> PATH and ENV (setting/unsetting) -> Importing function -> Specifying file name containing argument ‘/’ -> Specifying file name containing argument ‘-‘ -> Redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘ -> Turning off restriction using ‘set +r‘ or ‘set +o‘ +> Restricted Bash shell. +> Restrictions implemented in rbash. +> The cd command is not allowed. +> PATH and ENV (setting/unsetting). +> Importing function. +> Specifying file name containing argument ‘/’. +> Specifying file name containing argument ‘-‘. +> Redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘. +> Turning off restriction using ‘set +r‘ or ‘set +o‘. - Start rbash: @@ -25,8 +25,3 @@ - Print the version information of rbash: `rbash --version` - - - - - From ff781ee8f04fd98a42c1966eb0e4ab8ec7fdfa85 Mon Sep 17 00:00:00 2001 From: sadboyzvone Date: Fri, 17 Nov 2017 16:37:36 +0100 Subject: [PATCH 3/6] rbash: put restrictions onto 1 line --- pages/common/rbash.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pages/common/rbash.md b/pages/common/rbash.md index a65ef5235..fa2cb64df 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,14 +1,7 @@ # rbash > Restricted Bash shell. -> Restrictions implemented in rbash. -> The cd command is not allowed. -> PATH and ENV (setting/unsetting). -> Importing function. -> Specifying file name containing argument ‘/’. -> Specifying file name containing argument ‘-‘. -> Redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘. -> Turning off restriction using ‘set +r‘ or ‘set +o‘. +> Restrictions implemented in rbash: the cd command is not allowed,PATH and ENV (setting/unsetting),importing function,specifying file name containing argument ‘/’,specifying file name containing argument ‘-‘,redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘,turning off restriction using ‘set +r‘ or ‘set +o‘. - Start rbash: From 0f1e8052e978811b40793159d5f37654eca6ceaf Mon Sep 17 00:00:00 2001 From: sadboyzvone Date: Fri, 17 Nov 2017 16:39:15 +0100 Subject: [PATCH 4/6] rbash: remove some restrictions --- pages/common/rbash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/rbash.md b/pages/common/rbash.md index fa2cb64df..1270f4169 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,7 +1,7 @@ # rbash > Restricted Bash shell. -> Restrictions implemented in rbash: the cd command is not allowed,PATH and ENV (setting/unsetting),importing function,specifying file name containing argument ‘/’,specifying file name containing argument ‘-‘,redirecting output using ‘>‘, ‘>>‘, ‘>|‘, ‘<>‘, ‘>&‘, ‘&>‘,turning off restriction using ‘set +r‘ or ‘set +o‘. +> Restrictions implemented in rbash: the cd command is not allowed,PATH and ENV (setting/unsetting)... - Start rbash: From 8edaf808cadc401ab2e215b296d3f1fd731e61c5 Mon Sep 17 00:00:00 2001 From: Agniva De Sarker Date: Tue, 21 Nov 2017 00:16:13 +0530 Subject: [PATCH 5/6] Simplified heading --- pages/common/rbash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/rbash.md b/pages/common/rbash.md index 1270f4169..36468fbe5 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,7 +1,7 @@ # rbash > Restricted Bash shell. -> Restrictions implemented in rbash: the cd command is not allowed,PATH and ENV (setting/unsetting)... +> Similar to `bash` shell with some restrictions like changing directories with `cd`, setting/unsetting of PATH, ENV variables and others. - Start rbash: From ea57113b12b5c6ef4800fa63092a99793252f150 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 20 Nov 2017 23:07:54 +0000 Subject: [PATCH 6/6] Teensy grammatical fix --- pages/common/rbash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/rbash.md b/pages/common/rbash.md index 36468fbe5..b4b1c2fc8 100644 --- a/pages/common/rbash.md +++ b/pages/common/rbash.md @@ -1,7 +1,7 @@ # rbash > Restricted Bash shell. -> Similar to `bash` shell with some restrictions like changing directories with `cd`, setting/unsetting of PATH, ENV variables and others. +> Similar to the `bash` shell with some restrictions like changing directories with `cd`, setting/unsetting of PATH, ENV variables and others. - Start rbash: