10 Gain more ac­cess priv­i­leges with Sudo

Linux Format - - ESCAPE WINDOWS -

When you open the Ter­mi­nal, you log on to the shell via your own user ac­count. Cer­tain com­mands re­quire el­e­vated ac­cess as the root user (look for a ‘per­mis­sion de­nied’ er­ror), and you achieve this by pre­ced­ing the com­mand with sudo , like so: $ sudo apt-get in­stall vlc You’ll be prompted for your own user ac­count pass­word, and the com­mand will now run – you should now be able to use the sudo com­mand again dur­ing the Ter­mi­nal ses­sion with­out be­ing prompted for your pass­word. By the way, if you for­get to in­clude sudo from a com­mand, just type sudo !! and hit [En­ter] to re­peat the com­mand with sudo ap­plied to it. If you want to launch a desk­top app with root priv­i­leges (such as the Nau­tilus file man­ager), use the gksu tool (in­stall it first): $ sudo apt-get up­date && sudo apt-get in­stall gksu $ gksu nau­tilus Nau­tilus will open as nor­mal, but with el­e­vated ac­cess. When you’re done, close the app win­dow, then press [Ctrl] + [C] in the Ter­mi­nal, which in­ter­rupts the cur­rent run­ning pro­gram and re­turns you to the com­mand line. Some dis­tros en­able you to log on to the com­mand line as the root user with the su tool, but Ubuntu blocks this, and for good rea­son. Stick with the sudo tool in­stead.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.