L in u X ba sics for h acke rs g e t t I n g s t a r t e d w I t h




Download 7.3 Mb.
Pdf ko'rish
bet6/115
Sana27.11.2023
Hajmi7.3 Mb.
#106243
1   2   3   4   5   6   7   8   9   ...   115
Bog'liq
linuxbasicsforhackers
mashinali o\'qitishga kirish, 1698393090

ADDING AND REMOVING SOFTWARE 
39
Using apt to Handle Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Searching for a Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Adding Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Removing Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Updating Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
Upgrading Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Adding Repositories to Your sources .list File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Using a GUI-based Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Installing Software with git . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47


Contents in Detail
xiii

CONTROLLING FILE AND DIRECTORY PERMISSIONS 
49
Different Types of Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Granting Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Granting Ownership to an Individual User . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Granting Ownership to a Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Checking Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Changing Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Changing Permissions with Decimal Notation . . . . . . . . . . . . . . . . . . . . . . . . 52
Changing Permissions with UGO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Giving Root Execute Permission on a New Tool . . . . . . . . . . . . . . . . . . . . . . 55
Setting More Secure Default Permissions with Masks . . . . . . . . . . . . . . . . . . . . . . . . . 56
Special Permissions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Granting Temporary Root Permissions with SUID . . . . . . . . . . . . . . . . . . . . . . 57
Granting the Root User’s Group Permissions SGID . . . . . . . . . . . . . . . . . . . . . 58
The Outmoded Sticky Bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Special Permissions, Privilege Escalation, and the Hacker . . . . . . . . . . . . . . . 58
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60
Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Download 7.3 Mb.
1   2   3   4   5   6   7   8   9   ...   115




Download 7.3 Mb.
Pdf ko'rish

Bosh sahifa
Aloqalar

    Bosh sahifa



L in u X ba sics for h acke rs g e t t I n g s t a r t e d w I t h

Download 7.3 Mb.
Pdf ko'rish