User Tools

Site Tools


linux_permissions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux_permissions [2016/07/25 19:10] walkeradminlinux_permissions [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Linux Permissions ======+====== Linux Permissions Introduction ======
 are you making this up? are you making this up?
 \\  \\ 
Line 9: Line 9:
 \\  \\ 
     ls -al     ls -al
 +    
 +    The output is:
 +    
 +    "-rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py"
 \\  \\ 
-The output is:+The part we are interest in is at the start of the line: 
 +\\  
 +    "-rw-r--r--" 
 +     
 +    A 10 character section that can be split up as: 
 +     
 +    "-" This denotes file or directory "-" = File, "d" = Directory 
 +\\  
 +Then we have three sets of three characters, and these are the different permissions for: 
 +\\  
 +    "rw-" - Owner 
 +    "r--" - Group 
 +    "r--" - Other 
 +\\  
 +Remember: 
 +\\  
 +    r is for read, w is for write and x is for execute. 
 +\\  
 +So for our example:
 \\  \\ 
     "-rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py"     "-rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py"
 +    
 +    "-" means its a file
 +    "rw-" Owner has read + write permissions
 +    "r--" Group has read only
 +    "r--" Other has read only.
 +\\ 
 +Who is the Owner and Group?
 +\\ 
 +    "-rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py"
 +    
 +    In this example, pi is the owner and they are a member of the pi group
 +\\ 
 \\  \\ 
 + 
linux_permissions.1469470242.txt.gz · Last modified: 2023/03/09 22:35 (external edit)