[Bug 294148] Re: move_uploaded_file does not set right permissions (ignores umask)

Nicolas nicolasfr at gmail.com
Wed Mar 4 14:27:36 GMT 2009


Hi,

I am experiencing the same problem since I upgraded my server (I only
upgraded a couple of week ago, the system is on production for about 6
months).

My server is running Ubuntu 8.04. The version of PHP5 I am using is:

root at hosting:~# php-cgi  -v
PHP 5.2.4-2ubuntu5.5 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Feb 11 2009 20:02:50)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

Problem is: files uploaded through a PHP upload form and then moved with
move_uploaded_file are given a umask of 0002 insted of 0022.

** Changed in: php5 (Ubuntu)
       Status: Invalid => New

-- 
move_uploaded_file does not set right permissions (ignores umask)
https://bugs.launchpad.net/bugs/294148
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list