View Single Post
Old 01-19-2005, 08:36 PM  
MxxCon
Super Duper
 
Join Date: Oct 2001
Location: Brooklyn, NY
Posts: 3,881
Default

right click on file or dir you want to change and select 'attributes(chmod)'


for example you have "-rw-------" for files, and "drwxr-xr-x" for directories. The numerical equivalent of this is 600 and 755. The first number controls the "owner" permissions, the latter two, the "group" and the "world" permissions.

How is this arrived at? Each letter has a value assigned to it:

* Null, or "-" = 0
* Execute, or "x" = 1
* Write, or "w" = 2
* Read, or "r" = 4

Adding them up arrives at a value for the group they control. Thus, in the above examples, "600" (r = 4) + (w = 2) = 6, results in "rw-" for the "owner" permissions, and 0 = "---" and "---" for the group and world permissions

More examples:

"chmod 644 [filename]" will result in "-rw-r--r--";
"chmod 755 [directory]" will result in "drwxr-xr-x";
These are the default permissions any new directories you create will have. They enable anyone to enter the directory and list the files inside it.
"chmod 777 [directory]" willl result in "drwxrwxrwx"
__________________
[Sig removed by Administrator: Signature can not exceed 20GB]
MxxCon is offline