SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

What is CHMOD?
  Requested and Answered by Carnuke on 2004/10/28 23:24:10     8458  reads 
CHMOD stands for ("Change mode") The Unix command and system call to change the access permissions of a named file. Each file (directory, device, etc.) has nine kinds of access which can be allowed or denied. Different permissions apply to the owner of the file, the members of the group the file belongs to, and world users. Each of these classes of user (owner, group and other) can have permission to read, write or execute the file.

Numeric mode:

From one to four octal digits
Any omitted digits are assumed to be leading zeros.

The first digit = selects attributes for the set user ID (4) and set group ID (2) and save text image (1)S
The second digit = permissions for the user who owns the file: read (4), write (2), and execute (1)
The third digit = permissions for other users in the file's group: read (4), write (2), and execute (1)
The fourth digit = permissions for other users NOT in the file's group: read (4), write (2), and execute (1)

The octal (0-7) value is calculated by adding up the values for each digit
User (rwx) = 4+2+1 = 7
Group(rx) = 4+1 = 5
World (rx) = 4+1 = 5
chmode mode = 0755

Examples

Allow read permission to everyone:
chmod 444 file

Make a file readable and writable by the group and others:
chmod 066 file

Allow everyone to read, write, and execute the file:
chmod 777 file

In a Xoops installation there are some files that need to be chmod directly after installation. This is usually achieved easily through your FTP client although it can also be done through your web server interface, such as cPanel.

These are the general CHMOD recommendations:

Directories in which the script needs to be able to create new files require 777, and files that the script needs to be able to modify require 666.

Directories that the script doesn't need to modify can be 755, and files that the script doesn't need to modify can be 644.

That's if the script runs as a user other than the user who owns the files, which is typically the case.

If the script (i.e., the web server) runs as the same user who owns the files, or if the server uses PHP Suexec, then the permissions can be tightened to 700 and 600.

The above applies to Unix servers, not Windows.


The comments are owned by the author. We aren't responsible for their content.


Login

Username:
Password:

Lost Password? Register now!

Who's Online

67 user(s) are online (1 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 67


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Did you know ?

All so-called "blank pages" in Xoops are caused by an error which terminates the script early

Random question

How do I make all my site content public and with no login block?