Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet112/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   108   109   110   111   112   113   114   115   ...   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)

[
 76 
]
Another command worth knowing is the 
chgrp
 command, which allows you to 
directly change the group ownership of a file. To use it, you can execute the 
chgrp
 
command along with the group you'd like to own the file, followed by the username. 
For example, our previous 
chown
 command can be simplified to the following, since 
we were only modifying the group assignment of that file:
#
 sudo chgrp sales myfile.txt
Well, there you have it. You should now be able to manage permissions of the files 
and directories on your server. If you haven't worked through permissions on a 
Linux system before, it may take a few tries before you get the hang of it. The best 
thing for you to do is to practice. Create some files and directories (as well as users) 
and manage their permissions. Try to remove a user's access to a resource and then 
try to access that resource as that user anyway and see what errors you get. Fix those 
errors and work through more examples. With practice, you should be able to get a 
handle on this very quickly.
Summary
In Linux administration and related fields, managing users and permissions 
is something you'll find yourself doing quite a bit. New users will join your 
organization, while others will leave, so this is something that will become ingrained 
in your mental toolset. Even if you're the only person using your servers, you'll find 
yourself managing permissions for applications as well, given the fact that processes 
cannot function if they don't have access to their required resources.
In this chapter, we took a lengthy dive into managing users, groups, and 
permissions. We worked through creating and removing users, assigning 
permissions, and managing administrative access with 
sudo
. Practice these concepts 
on your server. When you get the hang of it, I'll see you in our next chapter, where 
we'll discuss all things related to package management. It's going to be epic.
Further reading
•  User management (Ubuntu documentation): 
https://ubuntu.com/server/
docs/security-users
.
•  File permissions (Ubuntu community wiki): 
https://help.ubuntu.com/
community/FilePermissions
.
Just like the 
chown
 command, we can use the 
-R
 option with 
chgrp
 
to make our changes recursively, in the case of a directory.



Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   108   109   110   111   112   113   114   115   ...   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