5-Tajriba ishi Mavzu: Foydalanuvchi Account ni qo'shish. Ishdan maqsad: Foydalanuvchi Account ni qo'shish. Nazariy ma`lumot


Download 15.4 Kb.
Sana16.06.2023
Hajmi15.4 Kb.
#1513460
Bog'liq
Foydalanuvchi Account ni qo\'shish


5-Tajriba ishi
Mavzu: Foydalanuvchi Account ni qo'shish.
Ishdan maqsad: Foydalanuvchi Account ni qo'shish.
Nazariy ma`lumot:
Tizimni o'rnatgandan so'ng, faqat tizimni sozlash paytida siz sozlagan foydalanuvchi mavjud, bundan tashqari tizim qayd yozuvlari va u ma'muriy foydalanuvchi. Agar siz Tizimga ko'proq oddiy foydalanuvchi hisoblarini qo'shmoqchi bo'lsangiz, quyidagicha sozlang.

[1]

Masalan, [talaba] foydalanuvchini qo'shish.




ubuntu@dlp:~$
sudo adduser talaba



[sudo] password for ubuntu: # input self password
Adding user `focal' ...
Adding new group `focal' (1001) ...
Adding new user `focal' (1001) with group `focal' ...
Creating home directory `/home/focal' ...
Copying files from `/etc/skel' ...
New password: # set user password
Retype new password: # confirm
passwd: password updated successfully
Changing the user information for focal
Enter the new value, or press ENTER for the default
Full Name []: # input user info (OK with empty all if you do not need)
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
ubuntu@dlp:~$

[2]

Agar siz yangi foydalanuvchiga imtiyozlar berishni xohlasangiz, quyidagicha sozlang.





ubuntu@dlp:~$
sudo
usermod -G sudo talaba

ubuntu@dlp:~$

su - focal

Password:

# try to run a command which requires root privilege

focal@dlp:~$

sudo reboot

[sudo] password for focal:

# input self password



.....
.....
Ubuntu 20.04 LTS dlp ttyS0


dlp login:



[3]



Agar siz foydalanuvchi hisoblarini o'chirmoqchi bo'lsangiz, quyidagicha sozlang.




# remove a user [focal] (only removed user account)

ubuntu@dlp:~$ sudo

deluser talaba
# remove a user [focal] (removed user account and his home directory)

ubuntu@dlp:~$ sudo

deluser talaba --remove-home

Download 15.4 Kb.

Do'stlaringiz bilan baham:




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