Numeric permissions
From FreeBSDwiki
How permissions are defined
permissions are shown when you do an ls -l on a file or directory: [dave]@deus ~ % ls -l total 4
drwxr-x--- 2 dave dave 512 Sep 12 03:27 bin drwxr-x--- 2 dave dave 512 Sep 12 03:27 oldstuff -rw-r----- 1 dave dave 0 Sep 12 03:22 personal.info -rw-r--r-- 1 dave dave 0 Sep 12 03:20 phone.numbers -rw-r--r-- 1 dave dave 0 Sep 12 03:20 privatefile -rw-r----- 1 dave dave 0 Sep 12 03:24 shopping.list lrwxr-x--- 1 dave dave 13 Sep 12 03:28 useful -> useful.script -rwxr-x--- 1 dave dave 0 Sep 12 03:25 useful.script [dave]@deus ~ %
Those -rw-r----- bits are the permissions of the file and they break down as follows:
- the first bit tells you whether this is a directory, a link or a regular file the - indicates it's a regular file, a d for directory or an l for link
this needs:
-a comparison between unix permissions and windows permissions
-an explanation of owner, group and other permissions
-exp of diffs between dir permissions and file permissions
-d