You are on page 1of 9

Raspberry Pi OS – Files

Abdul Qayoom Hamal


HELP UNIVERSITY
Learning outcome

• Be able to use basic linux commands related to File access/permissions.


Introduction
•On a Linux system, every file has three categories of users :
• user – owner, usually has all the permissions. By default, the person who created a file
becomes its owner. Hence, a user is also sometimes called an owner.
• group- can contain multiple users. All users belonging to a group will have
the same access permissions to the file.
• others - those that are not the user owner and don't belong to the group
owning the file.

•For each category of users, read, write and execute permissions can be
granted or denied.
Access Rights
Check Permissions
ls –l
Grant/Revoke Permissions
UTILITIES FUNCTION
chmod Changes the accessibility of the
  file. Can only be done by the
Options to be used with chmod : owner of the file.
aall  
uuser Eg. chmod a+rw letter
ggroup
oothers
 
rread
wwrite
xexecute
 
+add
-removes
Access Codes

Code Meaning
The access right that is supposed to be on
0 or -
this place is not granted.
4 or r read access is granted to the user category
defined in this place
2 or w write permission is granted to the user
category defined in this place
1 or x execute permission is granted to the user
category defined in this place
User Group Codes

Code Meaning
u user permissions
g group permissions
o permissions for others
THANK YOU

You might also like