Birmingham mumbai


Using sudo to run privileged commands



Download 15,21 Mb.
Pdf ko'rish
bet65/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   61   62   63   64   65   66   67   68   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

Using sudo to run privileged commands
I'll go over how to manage 
sudo
 later on in this chapter, but for now, just keep in 
mind that the purpose of 
sudo
 is to enable you to use your user account to do things 
that normally only 
root
 would be able to do. For example, as a normal user, you 
cannot issue a command such as the following to install a software package:
apt install tmux
Instead, you'll receive an error:
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: 
Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-
frontend), are you root?
But if you prefix the command with 
sudo
 (assuming your user account has access to 
it), the command will work just fine:
sudo apt install tmux
An exception to this rule is that some VPS providers, such as 
DigitalOcean, will enable the 
root
 account even on their Ubuntu 
servers. Typically, the 
root
 password will be randomly generated 
and emailed to you. However, you should still create a user for 
yourself with administrative access regardless.


Chapter 2

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   61   62   63   64   65   66   67   68   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish