Birmingham mumbai



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

[
 58 
]
The following is sample output from this file on one of my servers:
Figure 2.10: Sample output from the /etc/group file
Like before, the columns in this file are separated by colons, though each line is only 
four columns long. In the first column, we have the name of the group. No surprise 
there. In the second, we are able to store a password for the group, but this is not 
used often as it's actually a security risk to do so. In the third column, we have the 
GID, which is similar in concept to the UID from when we were discussing users. 
Finally, in the last column, we (would) see a comma-separated list of each user that 
is a member of each of the groups. In this case, we're seeing that one user, 
jay
, is a 
member of the 
lxd
 group.
Several entries don't show any group memberships at all. Each user is indeed a 
member of their own group, so this is implied even though it doesn't explicitly call 
that out in this file. If you take a look at the 
/etc/passwd
 entries for your users, you 
will see that their primary group (shown as the third column in the form of a GID) 
references a group contained in the 
/etc/group
 file.
Creating new groups on your system is easy to do and is a great idea for categorizing 
your users and what they are able to do. Perhaps you can create an 
accounting
 
group for your accountants, an 
admins
 group for those in your IT department, and a 
sales
 group for your salespeople. The 
groupadd
 command allows you to create new 
groups. If you wanted to, you could just edit the 
/etc/group
 file and add a new line 
with your group information manually, although, in my opinion, using 
groupadd
 
saves you some work and ensures that group entries are created properly. Editing 
group and user files directly is typically frowned upon (and a typo can cause serious 
problems). Anyway, what follows is an example of creating a new group with the 
groupadd
 command:
sudo groupadd admins


Chapter 2

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   82   83   84   85   86   87   88   89   ...   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