Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet83/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   79   80   81   82   83   84   85   86   ...   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)

Virtual Private Server
 (
VPS
) providers unlock the 
root
 password and actually have you log in as the 
root
 user. 
Having an unlocked 
root
 account is not a standard Ubuntu 
practice, and is a customization specific to some cloud providers. 


Managing Users and Permissions
[
 56 
]
The shell will ask for that user's password and then you'll be logged in as that user. 
Again, type 
exit
 when you're done using the account, which will return you to the 
one you were using before you switched.
That command is all well and good if you know the user's password, but you often 
won't. Typically, in an enterprise, you'll create an account, force the user to change 
their password at first login, and then you will no longer know that user's password. 
Since you have 
root
 and 
sudo
 access, you could always change their password and 
then log in as them. But they'll know something is amiss if their password suddenly 
stops working—you're not eavesdropping, are you? Armed with 
sudo
 access, 
you can use 
sudo
 to change to any user you want to, even if you don't know their 
password. Just prefix our previous command with 
sudo
 and you'll only need to enter 
the password for your user account, instead of theirs:
sudo su -
Switching to another user account is often very helpful for support (especially 
while troubleshooting permissions). As an example, say that a user comes to you 
complaining that he or she cannot access the contents of a specific directory, or they 
are unable to run a command. In that case, you can log in to the server, switch to 
their user account, and try to reproduce their problem. That way, you can not only 
see their problem yourself, but you can also test out whether or not your fix has 
solved their issue before you report back to them.
Now we have a full understanding of user accounts, and even how to switch 
between them. In the next section, we'll look into groups, which allow us to 
categorize our users.

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   79   80   81   82   83   84   85   86   ...   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