Select Page

ABIOLA RASP – Raspberries for African School Projects

Wie können wir helfen?

< Alle Themen
Print

How to give a permission?

no-848 au-03

chmod

There are three sets of permissions. One set for the owner of the file, another set for the members of the file’s group, and a final set for everyone else. You can change these permission using the chmod command.

The meaning of permission

You will see r, x and w letters when you run the ls -l command

1) Run below command

ls -l

2) You can see the r,w and x letter

r: Read permisson. The file can be viewed.
w: Write permisson. The file can be edited, modifed and deleted.
x: Execute permission. The file can be run, if it is a program or script.

Give all permission to everyone

You can give read, write and execute permission to everyone using 777 option.

1) Run below command

chmod 777 results.txt

2) List the file

ls -l

3) You can see the rwx permisson

Owner permission: rwx
Group permisson: rwx
Other: rwx

755

You can give full permission to owner, and read and execute permission to group and others.

1) Run below command

chmod 755 results.txt

2) List the file

ls -l

3) Here is the result: rwx r-x r-x

Owner permission: rwx
Group permisson: r-x
Other: r-x

766

You can give full permission to owner, and read and write permission to group and others.

1) Run below command

chmod 766 results.txt

2) List the file

ls -l

3) Here is the result: rwx rw- rw-

Owner permission: rwx
Group permisson: rw-
Other: rw-

This article is a component of the “Linux Introduction” course from the ABIOLA online Academy.

Please refer: https://academy.abiola.ngo/courses/linux-introduction/?lang=en

Zurück Terminal shortcut
Weiter mount command
Inhaltsverzeichnis