Open main menu

CDOT Wiki β

Changes

OPS245 Lab 1 dev

154 bytes added, 11:40, 5 January 2023
Part 2: Accessing Administrative Privileges
#Refer to the Information box regarding how to access administrative privileges from the command line.
#Open a Terminal by clicking on '''Activities''' in the top left corner, then selecting '''Terminal''' from the menu in the bottom centre of your screen.
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">whoami</span></code></b>. This will display the name of your currently logged in user.
#Issue the command <b><code><span style="color:#3366CC;font-size:1.3em;">sudo whoami</span></code></b>. The first time you run any command with sudo, you will receive a warning asking you if you know what you are doing (i.e. running a command with the privileges of the root account). It will then prompt you for your password (the one for the account running the command through sudo, not the root account). If you enter your password correctly, sudo will run the command as the '''root account'''. This time the command will return '''root''', showing the elevated privileges.