Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-12 Thread Tom Evans
On Wed, Dec 12, 2012 at 2:26 PM, Toni Moreno wrote: > Hi Ben, Eric , I'm developing a centraliced IT-Administration platform.( > http://sourceforge.net/projects/itsat/ ) > … > I've tested your suggestion ( by adding a chmod while still root) but > doen't work: > > Hi Toni This isn't what Eric

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-12 Thread Eric Covener
> Finally I can't understand what is doing internaly > apache/mod_fgcid/php-cgi. with umask while uploading file.. > It's not doing anything. It's creating a secure temporary file for its own use that you're trying to read under a different userid.

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Ben Johnson
On 12/11/2012 1:12 PM, Eric Covener wrote: > On Tue, Dec 11, 2012 at 1:01 PM, Toni Moreno wrote: >> I would be happy to know another way to upload files for any users on the >> system through HTTPS. > > mod_fcgid doesn't do this for you. If you POST to a fastcgi, read the > post body in whatev

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Eric Covener
On Tue, Dec 11, 2012 at 1:01 PM, Toni Moreno wrote: > I would be happy to know another way to upload files for any users on the > system through HTTPS. mod_fcgid doesn't do this for you. If you POST to a fastcgi, read the post body in whatever direct way your language provides. Don't try to fig

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Ben Johnson
On 12/11/2012 1:01 PM, Toni Moreno wrote: > I would be happy to know another way to upload files for any users on > the system through HTTPS. > > But the question is why mod_fcgid changes apache umask ? is the correct > way to proceed , a undefined configuration , or a bug? > > El 11/12/2012 1

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Toni Moreno
I would be happy to know another way to upload files for any users on the system through HTTPS. But the question is why mod_fcgid changes apache umask ? is the correct way to proceed , a undefined configuration , or a bug? El 11/12/2012 18:12, "Eric Covener" escribió: On Tue, Dec 11, 2012 a

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Eric Covener
On Tue, Dec 11, 2012 at 10:30 AM, Toni Moreno wrote: > Yes !!! I do!!! > > The php-cgi executes a php command who does the following. > > - changes EUID for the process to a user who belongs to "itsatadm" group > ( it works fine!) > - reads uploaded file in /tmp/ and stores it to the $HOME of thi

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Toni Moreno
Yes !!! I do!!! The php-cgi executes a php command who does the following. - changes EUID for the process to a user who belongs to "itsatadm" group ( it works fine!) - reads uploaded file in /tmp/ and stores it to the $HOME of this user. if mod_fcgid changes umask to 600 instead of 644 I can no

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Eric Covener
> I think mod_fcgid is doing UPLOAD (handling file transfer) by itself to /tmp before process > "/usr/bin/php-cgi " have been spawned, is because of that your suggested bypass doesn't work. What error are you seeing exactly? mod_fcgid creates the temporary file for large bodies, then sends it to

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Toni Moreno
Hi Igor This is my actual configuration, I'm using as Wrapper de php-cgi. AddHandler fcgid-script .fcgi FcgidWrapper /usr/bin/php-cgi .fcgi FcgidIPCDir /opt/itsat/var/run/fastcgi/fcgidsock DefaultInitEnv PHPRC"/opt/itsat/etc/" FcgidConnectTimeout 1

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Igor Cicimov
On 11/12/2012 11:05 PM, "Toni Moreno" wrote: > > Hi Igor!! Thanks a lot for your answer, but I think is not the correct one, becaouse as I said before user "itsat" is already running with correct umask, and apache is running with this umask. The same apache instance is running mod_php and mod_fcgi

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Toni Moreno
Hi Igor!! Thanks a lot for your answer, but I think is not the correct one, becaouse as I said before user "itsat" is already running with correct umask, and apache is running with this umask. The same apache instance is running mod_php and mod_fcgid. When files are created from mod_php default pe

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Igor Cicimov
On 11/12/2012 10:42 PM, "Igor Cicimov" wrote: > > > On 11/12/2012 9:33 PM, "Toni Moreno" wrote: > > > > Hi to all ,and sorry form my poor English. > > > > I have a problem when trying upload files and handle it with mod_fcgid. > > > > The fact is I'm running apache 2.2.16 on debian and runing it

Re: [users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Igor Cicimov
On 11/12/2012 9:33 PM, "Toni Moreno" wrote: > > Hi to all ,and sorry form my poor English. > > I have a problem when trying upload files and handle it with mod_fcgid. > > The fact is I'm running apache 2.2.16 on debian and runing it as user "itsat" which have "0022" umask. ( user "itsat" creates f

[users@httpd] mod_fcgid upload permission changes.

2012-12-11 Thread Toni Moreno
Hi to all ,and sorry form my poor English. I have a problem when trying upload files and handle it with mod_fcgid. The fact is I'm running apache 2.2.16 on debian and runing it as user "itsat" which have "0022" umask. ( user "itsat" creates files in 644 mode). itsat@test:/tmp$ touch foo itsat@te