Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet72/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   68   69   70   71   72   73   74   75   ...   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)

[
 45 
]
Use your up/down arrows as well as the 
Page Up
 and 
Page Down
 keys to scroll 
through the file. When you're finished, press 
Ctrl
 + 
x
 on your keyboard to exit the 
text editor.
Now that we know how to create users, it will be useful to understand how to 
remove them as well.
Removing users
Removing access is very important when a user no longer needs to access a system, 
as unmanaged accounts often become a security risk. To remove a user account, we'll 
use the 
userdel
 command.
Before removing an account, though, there is one very important question you 
should ask yourself. Will you still need access to the user's files? Most companies 
have retention policies in place that detail what should happen to a user's data when 
he or she leaves the organization. Sometimes, these files are copied into an archive 
for long-term storage. Often, a manager, coworker, or a new hire will need access to 
the former user's files, perhaps to continue working on a project where they left off. 
It's important to understand this policy ahead of managing users. If you don't have 
a policy in place that outlines retention requirements for files when users resign, you 
should probably work with your management and create one.
By default, the 
userdel
 command does not remove the contents of the user's 
home
 
directory. Here, we use the following command to remove 
dscully
 from the system:
sudo userdel dscully
We can see that the files for the 
dscully
 user still exist by entering the following 
command:
ls -l /home
The preceding commands will result in the following outputs:
Those of you with keen eyes will likely notice that the 
adduser
 
script is calling 
useradd
 to perform its actual work. So either way, 
you're either directly or indirectly using 
useradd
.


Managing Users and Permissions

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   68   69   70   71   72   73   74   75   ...   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