Ah the numbers
The mysteries of Chmod explained:
basic syntax:
chmod 777 filename
what it means:
first number = User (what permissions do you want the user to have)
Second Number = Group
third number = Other (everyone else)
Now what the numbers mean:
0=No permissions
1=x (execute)
2=w (write)
4=r (read)
Then you can add the numbers so if you wanted to do more than one like:
full permission
rwx=4(r)+2(w)+1(x)=7
Read/Write
rw-=4(r)+2(w)=6
Read/Execute
r-x= 4(r)+1(x) =5
So chmod 765 junk would do the following:
blink@sanity ~ --> chmod 765 junk
blink@sanity ~ --> ls -l junk
-rwxrw-r-x 1 blink blink 3 Sep 23 12:15 junk
blink@sanity ~ -->