umask takes away the given values from the standard mask 777.
A graphical view shows this better:
standard:
rwxrwxrwx = 777
will get with umask 002:
rwxrwxr-x = 775
or will get with umask 077:
rwx------ = 700
and so on.
![]() |
|
||||||||||
|
umaskОписаниеint umask ( [int mask] )
Устанавливает umask() PHP
в значение Вызов umask() без аргументов вернёт текущую umask. umask
maulwuff at gmx dot de
18-Sep-2007 03:44
umask takes away the given values from the standard mask 777.
sean at awesomeplay dot com
30-May-2007 09:48
"It is better to change the file permissions with chmod() after creating the file."
ShaD@TW
16-May-2006 09:32
Notice that directory(s) and file(s) sometimes have different results.
18-Feb-2006 08:31
Using (cmask - umask) is a wrong way to calculate the new mask:
andi<at>splitbrain.org
03-Mar-2005 02:03
To play around with umasks and permissions use this little fragment:
trisk at earthling dot net
31-Jan-2005 09:25
I thought I would clarify the numbering scheme used here, as it confused me at first.
sam at totallydigital dot co dot nz
19-Sep-2002 09:04
The first comment perhaps didn't quite make clear what's on with your umask and the permissions. |