666: the number of the beast
When you use
tempnam() to create a file with a unique filename the documentation states that the file permissions will be set to
0600. What does this mean?
A: Only the current script can write to the file
B: All users of the group to which the Web server system user (typically www-data) belongs can read and write to the file.
C: Only actions on behalf of the Web server system user can read and manipulate the file.
0600 is the highest file permission for read/writable files: everybody/-thing on the system can read or write to the file.