Welcome, Guest. Please
The Codex is
Setting up YaBB Forum
Managing Your Forum
› What is Umask ?
What is Umask ? (Read 3448 times)
What is Umask ?
, 2007 at 3:33am
The umask command is used to set and determine the default file creation permissions on the system. It is the octal complement of the desired file mode for the specific file type. Default permissions are:
* 755 - Executable files
* 666 - Text files
These defaults are set allowing all users to execute an executable file and not to execute a text file. The defaults allow all users can read and write the file.
The permission for the creation of new executable files is calculated by subtracting the umask value from the default permission value for the file type being created. An example for a text file is shown below with a umask value of 022:
666 Default Permission for text file
-022 Minus the umask value
644 Allowed Permissions
Therefore the umask value is an expression of the permissions the user, group and world will not have as a default with regard to reading, writing, or executing the file. The umask value here means the group the file belongs to and users other than the owner will not be able to write to the file. In this case, when a new text file is created it will have a file permission value of 644, which means the owner can read and write the file, but members of the group the file belongs to, and all others can only read the file.
add umask(000); on the second line, directly under the Perl Path shebang.
Some servers will choke on a program settings this... causing an Internal error. So if it does, you'll have to edit and remove it. Don't forget to CHMOD the YaBB.pl to 755
Last Edit: Feb 27
, 2010 at 12:37am by
Forum Jump »
» 10 most recent Posts
» 10 most recent Topics
Frequently Asked Questions FAQ's
YaBB 3 Development
Upgrading to YaBB 2.X
Setting up YaBB Forum
Understanding the Admin Center
Managing Your Forum ««
Languages Addition and Translating
Guardian, Spam & Censor Settings
Backing up and Restoring
User Requested Template Modifications
Past YaBB Forum Software
YaBB 1.x (No longer Supported)
Installation, Setup, Errors and Structure
« Board Index
» Powered by
YaBB Forum Software
© 2000-2017. All Rights Reserved.