chmod - Learn how to use made easy
Understanding the file propeties of a file is sometimes hard to understand, so here is a quick tutorial on doing just that. You normally see the below when you do a ls -al, and dont understand what it means, hopefully after you see this, you will then have a better understanding.
drwxr-xr-x 2 root wheel 512 Jan 3 19:21 ppp -rw-r--r-- 1 root wheel 1790 Nov 30 00:15 printcap -rw-r--r-- 1 root wheel 818 Nov 30 00:15 profile -rw-r--r-- 1 root wheel 1663 Nov 30 00:15 protocols -rw-r--r-- 1 root wheel 40960 Mar 13 11:41 pwd.db -rw-rw-rw- 1 root wheel 8091 Nov 30 00:15 rc -rw-r--r-- 1 root wheel 3512 Oct 17 12:08 rc.atm -rw-r--r-- 1 root wheel 8252 Mar 6 15:28 rc.conf -rw-r--r-- 1 root wheel 8252 Mar 6 15:28 rc.conf.previous -rw-r--r-- 1 root wheel 237 Oct 17 12:08 rc.devfs -rw-r--r-- 1 root wheel 5849 Nov 30 00:15 rc.firewall -rw-r--r-- 1 root wheel 2853 Nov 30 00:15 rc.i386 -rw-r--r-- 1 root wheel 659 Jan 14 21:49 rc.local
Always want to to know how to read the properties of a file ? Well here is the information to put it into perspective...
Owner Group Public ------------- --------------- ------------------ r w x r w x r w x 4 2 1 4 2 1 4 2 1 ______ ______ ______ | | | | | | 7 7 7
|