Every file and directory in Linux has permissions assigned to three categories:
- User (Owner): A user is the owner of the file. By default, the person who created a file becomes its owner.
- Group: A user- group can contain multiple users. All users belonging to a group will have the same Linux group permissions access to the file.
- Others: Any other user who has access to a file.
Each category has three types of permissions:
r
(Read) → Can view the file contentsw
(Write) → Can modify the file