DokuWiki

It's better when it's simple

User Tools

Site Tools


config:fmode

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
config:fmode [2009-01-01 00:18] 75.104.156.15config:fmode [2009-01-01 13:38] ach
Line 1: Line 1:
 +====== Configuration Setting: fmode ======
 +
 +This option sets the permissions you want your files to be created with. What you set here is the mode to set on your files in octal (not a string, but a number always starting with 0). The default creates files with UNIX permissions of ''0644'' (''rw-r--r--''). 
 +
 +  * Type: Number
 +  * Default: ''0644''
 +
 +This setting has no effect on Windows servers.
 +
 +The first non-zero digit (6 in the default above) determines the //user// permissions (i.e. permissions of the file owner), second non-zero digit is the //group// permissions and the last digit is permissions for //other// (i.e. everyone else). To convert permissions into the correct number, use the following key:
 +
 +  * Read=4
 +  * Write=2
 +  * Execute=1
 +
 +and sum the result for each one of the above groups. Thus, if you want read and write permissions for the user owning the files, specify 4+2=6 as the first non-zero digit. If you would want read and execute permissions (appropriate e.g. for directories) for the group that the file belongs to, specify 4+1=5 as the second non-zero digit. The default permission value above is interpreted as read and write permissions for the ''user'' and only read permissions (number 4) for the ''group'' and ''others''.
 +
 +===== See also =====
 +
 +  * [[:config:|Configuring DokuWiki]]
 +  * [[config:dmode]]
 +  * [[install:Permissions]]
 +  * [[:Security]]
  
config/fmode.txt · Last modified: 2010-02-03 02:47 by 192.245.12.4

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki