Difference between revisions of "Chmod" From Online Manual

Jump to: navigation, search
(cant redirect users to the same page for more info... plus mixed tags removed)
(anything beyond the simple definition moved to CHMOD - What's that all about)
Line 1: Line 1:
 
{{DISPLAYTITLE:chmod}}
 
{{DISPLAYTITLE:chmod}}
The chmod command is found primarily on Unix-like machines. It is used to modify the permissions of a file or directory. This is important because, for SMF to work properly, some files and directories must be writeable by users other than the owner.<noinclude>
+
[[chmod]] (short for change mode) is a command for changing permissions on files and directories. These permissions determine whether your forum's readers can see your site, and whether the SMF [[package]] manager can patch or replace a file. {{#ifeq: CHMOD - What's that all about|{{FULLPAGENAME}}||{{For more information|using chmod}}}}
 
 
Syntax: chmod mode file<br>
 
Example: chmod 766 readme.txt
 
 
 
Each digit in the mode parameter represents the permissions for a user or a class of users:
 
*the first digit corresponds to the owner of the file
 
*the second digit corresponds to the file's group
 
*the final digit corresponds to everybody else.
 
 
 
 
 
There are eight digits that can be used in the mode parameter.
 
 
 
*0 - Deny all
 
*1 - Execute Only
 
*2 - Write Only
 
*3 - Execute and Write
 
*4 - Read Only
 
*5 - Read and Execute
 
*6 - Read and Write
 
*7 - Allow All
 
 
 
On a web server, files are usually set to 644. This indicates that the file owner can read and write to the file, while everyone else can only read it. Directories are commonly set to 755. This indicates that the directory owner has full control, while everyone else can read and execute the files within it.
 
 
 
Files and directories which must be writeable by users other than the owner are: {{SMF files and directories}}
 
 
 
[[Category:SMF terminology]]
 
</noinclude>
 

Revision as of 07:20, 16 April 2014

chmod (short for change mode) is a command for changing permissions on files and directories. These permissions determine whether your forum's readers can see your site, and whether the SMF package manager can patch or replace a file. For more information, see using chmod