> ls -l / etc / periodic
drwxr-xr-x 2 root wheel 1024 Sep 7 09:10 dailyThe character d at the beginning of each line indicates that the file is a directory. The remaining group of licenses is then divided into groups of 3 characters, in which order of these license groups will be the three rights x , w and r of each Owner , Group and World object. Hyphens between groups to distinguish licenses of objects. Therefore, for directories in / etc / periodic , the Owner object has licenses 111/7 / rwx , corresponding to r, w and x , while the license of both Group and World objects will be 101 / 5 / rx , or r and x .
drwxr-xr-x 2 root wheel 512 Sep 7 09:10 monthly
drwxr-xr-x 2 root wheel 512 Sep 7 09:10 security
drwxr-xr-x 2 root wheel 512 Sep 7 09:10 weekly
> ls -l tmp.txt
-rw-r - r-- 1 jon doe 0 Nov 12 15:30 tmp.txtNote that in order to make changes to this file we have to log in with the account with the necessary system privileges to not only affect the file but also affect all users and groups. Otherwise, we will not be able to assign the file tmp.txt to root user without logging in as root.