Skip to main content
rashid lab
CAPTCHA
Image CAPTCHA
Get new captcha!
Enter the characters shown in the image.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Main navigation

  • Home
  • About Us
  • Knowledge Base
    • Never Stop Learning!
    • Safer Internet
    • Vulnerabilities
  • Contact
CAPTCHA
Image CAPTCHA
Get new captcha!
Enter the characters shown in the image.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
User account menu
  • Log in

Breadcrumb

  1. Home

Octal and Binary Representations of Permissions

By rashid, 27 July, 2022

Imagine the rwx permissions as three ON/OFF switches, so when all permissions are granted, this equates to 111 in binary. Each file or directory has three basic permission types:

read – The Read permission refers to a user’s capability to read the contents of the file.
write – The Write permissions refer to a user’s capability to write or modify a file or directory.
execute – The Execute permission affects a user’s capability to execute a file or view the contents of a directory.

(000) 0 = No Permission
(001) 1 = Execute
(010) 2 = Write
(100) 4 = Read

   
Binary   
   
Octal   
   
rwx   
   
   
000   
   
0   
   
---   
   
   
001   
   
1   
   
--x   
   
   
010   
   
2   
   
-w-   
   
   
011   
   
3   
   
-wx   
   
   
100   
   
4   
   
r--   
   
   
101   
   
5   
   
r-x   
   
   
110   
   
6   
   
rw-   
   
   
111   
   
7   
   
rwx   
   

Ref: https://linuxfoundation.org/blog/classic-sysadmin-understanding-linux-file-permissions/

Tags

  • Linux
  • Log in to post comments

Comments


Never Stop Learning

RSS feed