Site Overlay

File Permissions on Linux

This article discusses File Permissions in Linux .

USER AUTHORIZATION

There are 3 types of permission concepts in Linux.These permissions have numeric values. 
Read (r)4 
Write (w)2 
Execute (x)1 
Total numeric value:7 
To find out the ID of a user or groupScript:
id
The uid of the root user is 0 zero.
To see permissions on the terminal.Command: ls -ln 
When viewing permissions, 1 part represents "owner" and 2 part "group" represents 3 parts "other" authorizations.
Ownergroupother
drwxrXrx
 The first 7 represents the owner, the second 7 represents the group, the third 7 represents the "other" 777 
chmod is used to change file privilegesChmod – removes permissionchmod -777 sharedfolderHave all permissions removed.
Chmod+ allowsChmod +400 sharedfolderSince there is a 4 read authorization, and since the authorization starts from the owner in the first place, writing 0 to the group 0 other a 0 leaves the authority as it is. 400
 Remove permission from myself, the owner,Chmod -400 Shared folder 
 Owner i.e. giving me read authority for grop and other other than myselfChmod +044 sharedfolder 
Arif Akyüz
Senior Information Technologies System and Network Specialist

image 3
Arif Akyüz Content Producer Cyber Security Expert

Arif Akyüz
Content Producer & Cyber Security Expert
[email protected]