To understand Linux file permissions, we need to understand Ownership and Permission.
Ownership
Every file or directory is assigned three types of ownership:
🔹Owner: The owner is the user who created the file or directory.
🔹Group: A group can have multiple users. All users in the group have the same permissions to access the file or directory.
🔹Other: Other refers to users who are not owners or members of the group.
Permission
There are only three types of permissions for a file or directory:
🔹Read (r): The read permission allows the user to read a file.
🔹Write (w): The write permission allows the user to change the content of the file.
🔹Execute (x): The execute permission allows a file to be executed.