Page Index Toggle Pages: 1 Print
What is Umask ? (Read 2822 times)
Captain John
Ex Member


What is Umask ?
Oct 10th, 2007 at 3:33am
Print Post  
Umask Settings

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.

In YaBB.pl

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 27th, 2010 at 12:37am by »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Print
 
  « Board Index ‹ Board  ^Top