From 37642f8bcbf643bbe1174bbabd5ff7640ccbea92 Mon Sep 17 00:00:00 2001 From: The Archangel <32396866+the4rchangel@users.noreply.github.com> Date: Thu, 24 Jan 2019 15:13:02 -0500 Subject: [PATCH] Added a "Sudo" paragraph entry. (#23709) --- guide/english/bash/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guide/english/bash/index.md b/guide/english/bash/index.md index 9872137e80..5a81db1662 100644 --- a/guide/english/bash/index.md +++ b/guide/english/bash/index.md @@ -65,6 +65,17 @@ zach@marigold:~$ chmod 744 myBashScript.sh ```` And then execute the script. +## Running bash commands as "Root" (Sudo) +Sometimes, running certain commands in bash will return in an error letting you know you don't have the proper permissions to execute it. This means the command requires elevated permissions to run. This can be achieved, through the "Sudo" command. Users can be granted special "sudoer" permissions through a file located at ```/etc/sudoers```. To run sudo, you simply need to prepend it to the front of the command you're running. It will then ask you for your password to validate that you're authorized to run this command as well as to verify that you are intending to run it as "root". Running a command as root means you are running it with the highest permissions available on the system with no restrictions. + +An example of a sudo command might look something like this: + +``` +$sudo apt update +[sudo] password for user: +Get:1 http://deb.parrotsec.org/parrot parrot InRelease [14.6 kB] +``` + ### Script Example If you execute this script it is going to print out your name.