Birmingham mumbai


Creating and removing users



Download 15,21 Mb.
Pdf ko'rish
bet67/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   63   64   65   66   67   68   69   70   ...   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)

Creating and removing users
Creating users in Ubuntu can be done with one of two commands: 
adduser
 and 
useradd
. This can
 be a little confusing at first, because both of these commands do the 
same thing (in different ways) and are named very similarly. I'll go over the 
useradd
 
command first and then I'll explain how 
adduser
 differs. You may even prefer the 
latter, but we'll get to that in a moment.
Using useradd
First, here's an example of the 
useradd
 command in action:
sudo useradd -d /home/jdoe -m jdoe
With this command, I created a user named 
jdoe
. With the 
-d
 option, I'm clarifying 
that I would like a home directory created for this user, and following that, I called 
out 
/home/jdoe
 as the user's home directory. The 
-m
 flag tells the system that I would 
like the home directory to be created during the process; otherwise, I would've had 
to create the directory myself. Finally, I called out the username for my new user (in 
this case, 
jdoe
).
Ubuntu Server automatically gives the first user account you create 
during installation access to 
sudo
.


Managing Users and Permissions

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   63   64   65   66   67   68   69   70   ...   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