Linux File Permissions
Linux files have there own permissions set-up.
There are mainly there types of access permission:
Read
Write
Execute
Permission sets in linux for files and directories
There is permission set for the Owner, Group and Others. When you type " ll " you will get 10 set of values for each files eg: -rw-rw-r-- 1 name name 41333 Aug 18 22:57 jpg . The 1st bit denotes if its a directory or file. 2nd, 3rd and 4th bit is the owner's permission. 5th, 6th and 7th bit is group's permission and 8th, 9th and 10th bit is for other's permission. According to the example owner and group has read/write permission and other's have only read permission.
You can change the permission of a file. Try chmod 777 filename. This will give owner, group and other's full permission (read/write/execute) over the file.
Permission Sets
1 - Execute
2 - Write
3 - Write and Execute
4 - Read
5 - Read and Execute
6 - Read and Write
7 - Read, Write and Execute
Try chmod 700 filename. This will give the owner of the file full permission. The Group and other's will have no permission to access the file. Only the owner of the file can read, write or execute the file. If you want other and Group only to read the file you can give chmod 744 filename.
Related posts:
- Introduction to Linux
- Difference between Linux and Windows
- Linux Directory Structure
- Linux Basic Commands
- Linux File Permissions
- Linux Server Administration Commands
- Linux Advanced File Permissions
- Semaphores in Linux
- Linux Commands A
- Linux Commands B
- Linux Commands C
- Linux Commands D
- Linux Commands E
- Linux Commands F
- Linux Commands G
- Linux Commands H
- Linux Commands I
- Linux Commands J
- Linux Commands K
- Linux Commands L
- Linux Commands M
- Linux Commands N
- Linux Commands O
- Linux Commands P
- Linux Commands Q
- Linux Commands R
- Linux Commands S
- Linux Commands T
- Linux Commands U
- Linux Commands V
- Linux Commands W
- Linux Commands X
- Linux Commands Y
- Linux Commands Z
Your IP address1 is: 172.18.0.2
Tutorials
Latest Updates
Follow us
- Tech-Tutorials twitter.com/techcuriosity