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

What is CHMOD?
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

Who's Online

259 user(s) are online (3 user(s) are browsing XOOPS FAQ)


Members: 0


Guests: 259


more...

Donat-O-Meter

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

Did you know ?

Style sheets can be interpreted easily here ...

Random question

Is there a feature to import a list of users from an external file? How about one that can send invitation to join based on email addresses?