Controlling File and Directory Permissions in Linux | Day 3

Linux permissions are categorized into three types:
read (r),
write (w),
execute (x).

Each file or directory has three levels of permissions: user, group, and everyone, which define who can do what with the file. ( -rw-rw-r– this indicates -user-…


This content originally appeared on DEV Community and was authored by Jagannath Ghantenavar

Linux permissions are categorized into three types:
read (r),
write (w),
execute (x).

Each file or directory has three levels of permissions: user, group, and everyone, which define who can do what with the file. ( -rw-rw-r-- this indicates -user-group-everyone-- what access dose the particular level has for that file or Dir.

  1. To modify these permissions, the chmod command is used. For example, to grant execute permissions to a file or directory, the command chmod +x filename is used.

  2. Similarly, to remove permissions, the chmod command can be used with a - sign. For instance, chmod -w filename would remove write permissions from a file, preventing it from being altered.


This content originally appeared on DEV Community and was authored by Jagannath Ghantenavar


Print Share Comment Cite Upload Translate Updates
APA

Jagannath Ghantenavar | Sciencx (2024-08-07T15:13:27+00:00) Controlling File and Directory Permissions in Linux | Day 3. Retrieved from https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/

MLA
" » Controlling File and Directory Permissions in Linux | Day 3." Jagannath Ghantenavar | Sciencx - Wednesday August 7, 2024, https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/
HARVARD
Jagannath Ghantenavar | Sciencx Wednesday August 7, 2024 » Controlling File and Directory Permissions in Linux | Day 3., viewed ,<https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/>
VANCOUVER
Jagannath Ghantenavar | Sciencx - » Controlling File and Directory Permissions in Linux | Day 3. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/
CHICAGO
" » Controlling File and Directory Permissions in Linux | Day 3." Jagannath Ghantenavar | Sciencx - Accessed . https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/
IEEE
" » Controlling File and Directory Permissions in Linux | Day 3." Jagannath Ghantenavar | Sciencx [Online]. Available: https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/. [Accessed: ]
rf:citation
» Controlling File and Directory Permissions in Linux | Day 3 | Jagannath Ghantenavar | Sciencx | https://www.scien.cx/2024/08/07/controlling-file-and-directory-permissions-in-linux-day-3/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.