Est. 2003
Home Help Login Register
News: Welcome to ZboX Webhosting.
10 Megs

10 MB Disk
1 GB Transfer
$10.00 per year
25 Megs

25 MB Disk
2 GB Transfer
$25.00 per year
50 Megs

50 MB Disk
3 GB Transfer
$50.00 per year
75 Megs

75 MB Disk
4 GB Transfer
$75.00 per year
500 Megs

500 MB Disk
10 GB Trans
$100.00 yr.

+  ZboX Webhosting Est. 2003. Now in our Fourth year!
|-+  FAQ & Forum Guidlines
| |-+  Frequently Asked Questions
| | |-+  Basic Chmod Explained
0 Members and 0 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Basic Chmod Explained  (Read 1782 times)
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1314


What 'ya got there??


Basic Chmod Explained
« on: December 22, 2003, 07:53:53 AM »

Basically chmod (aka "permissions") is short for "change mode". On a linux server such as ours it basically is how you change permissions for files and directories that can be used by a script. And also what can be done with those files and directories. There are three parts to a chmod number. The first number is for "owner", the second number is for "group", and "others" is the third. Most scripts will give you the chmod settings that will be needed in either the "readme" for the script or in the script code itself. To give you an example of the meaning of owner, groups, and others, lets use the ZboX web forum script as an example. The definition of the three in the forum are:
Owner: Me. I have access to everything in the script including admin
areas.
Group: Everyone who has registered for the forum. You can read and
execute certain aspects of the script like posting.
Others: This would be the unregistered "Guests" All they can do is read
the forum. They can't post or interact in any way.
Below are examples of the chmod numbers and their useage.
777: all can read/write/exec
755: owner can do all, group/others can read/exec
644: owner can read/write, group/others can read only

For Directories:
777: all can read, write, search
755: owner can do all, others and group can only search
Typical settings:
cgi scripts: 755
Data files: 666
Configuration files: 644 (files not updated by scripts)
Directories: 777 (with proper permissions on files in directory)
Here's a security tip: chmod a script to 400 if you want to disable it. You can always chmod it to 755 when you want to run it again.
Here's a handy little script that allows you to figure what chmod number you need:

http://javascriptkit.com/script/script2/ch...chmodcal2.shtml
« Last Edit: January 17, 2004, 07:55:50 AM by ZboX » Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"When all is said and done, there's nothing left to say or do!"
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Login with username, password and session length

ZboX Webhosting Est. 2003. Now in our Fourth year! | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Page created in 0.068 seconds with 22 queries.