Linux File Permissions
If you run the command
$ ls -l
you will get a list of files like below
-rw-r--r-- 1 dev dev
1892 Jul 10 18:30 linux.txt
Here first part is the file permission symbol, 1 is the no
of links of the file or in simple words showing there is one file linking to
linux.txt. The file belongs to user dev and group dev or in simple word dev
user and dev group owns the file. 1982 is the file size, after that the date
and time the file has created. Last one is the file name.
Each file and directory has three user based permission
groups:
Owner – It apply only the owner of the file or directory.
Group - The Group permissions apply only to the group that
has been assigned to the file or directory.
All other users - The All other Users permissions apply to
all other users on the system, this is the permission group that you want to
watch the most.