php-windows Digest 22 Feb 2007 23:56:46 -0000 Issue 3146
Topics (messages 27505 through 27516):
Re: FAO Dmitry - proc_open() update
27505 by: Dmitry Stogov
27506 by: David Felton
27515 by: Dmitry Stogov
Rights to delete?
27507 by: Gustav Wiberg
27508 by: trystano.aol.com
27509 by: Gustav Wiberg
27510 by: Armando
27511 by: Styve Couture
27512 by: Gustav Wiberg
27513 by: Styve Couture
27514 by: Armando
27516 by: Austin Gruenweller >-]O
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi David,
I didn't have plans to backport this patch to PHP-4.
Dmitry.
> -----Original Message-----
> From: David Felton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 2:29 PM
> To: [email protected]; [EMAIL PROTECTED]
> Subject: FAO Dmitry - proc_open() update
>
>
>
> Not sure if this mailing list is the best place to ask you a
> question Dmitry?
>
> I noticed in the latest version of PHP 5 (5.2.1) you have
> fixed an issue that has been causing us real problems:
>
> "Improved proc_open(). Now on Windows it can run external
> commands not through CMD.EXE. (Dmitry)"
>
> We have not been able to run certain executables we have
> wanted to on our windows web servers because of the issue of
> opening a security hole by altering permissions on cmd.exe,
> and it looks like you have fixed the problem.
>
> Unfortunately we use PHP 4, and I was sad to see in the
> latest version of PHP 4 (4.4.5), released 6 days after the
> above the fix has not been applied.
>
> Can you tell me if this fix is ever going to happen for PHP 4?
>
> Thanks.
>
>
> **************************************************************
> ********************
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity
> to whom they are addressed. If you have received this email
> in error please notify the system manager.
>
> This footnote also confirms that this email message has been
> swept by MIMEsweeper for the presence of computer viruses.
> **************************************************************
> ********************
>
--- End Message ---
--- Begin Message ---
I think because of the amount of PHP4 users out there this would be very
beneficial! Do you accept bribes? ;-)
PS I forgot to thank you for fixing this problem in the first place.
It's been around for ages - Thanks!
-----Original Message-----
From: Dmitry Stogov [mailto:[EMAIL PROTECTED]
Sent: 22 February 2007 1:41
To: David Felton; [email protected]
Subject: RE: FAO Dmitry - proc_open() update
Hi David,
I didn't have plans to backport this patch to PHP-4.
Dmitry.
> -----Original Message-----
> From: David Felton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 2:29 PM
> To: [email protected]; [EMAIL PROTECTED]
> Subject: FAO Dmitry - proc_open() update
>
>
>
> Not sure if this mailing list is the best place to ask you a
> question Dmitry?
>
> I noticed in the latest version of PHP 5 (5.2.1) you have
> fixed an issue that has been causing us real problems:
>
> "Improved proc_open(). Now on Windows it can run external
> commands not through CMD.EXE. (Dmitry)"
>
> We have not been able to run certain executables we have
> wanted to on our windows web servers because of the issue of
> opening a security hole by altering permissions on cmd.exe,
> and it looks like you have fixed the problem.
>
> Unfortunately we use PHP 4, and I was sad to see in the
> latest version of PHP 4 (4.4.5), released 6 days after the
> above the fix has not been applied.
>
> Can you tell me if this fix is ever going to happen for PHP 4?
>
> Thanks.
>
>
> **************************************************************
> ********************
> This email and any files transmitted with it are confidential
> and intended solely for the use of the individual or entity
> to whom they are addressed. If you have received this email
> in error please notify the system manager.
>
> This footnote also confirms that this email message has been
> swept by MIMEsweeper for the presence of computer viruses.
> **************************************************************
> ********************
>
--- End Message ---
--- Begin Message ---
PHP 4 is closed for new features. Please talk with Derick. He is the release
manager of PHP 4.
Dmitry.
> -----Original Message-----
> From: David Felton [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 4:52 PM
> To: Dmitry Stogov; [email protected]
> Subject: RE: FAO Dmitry - proc_open() update
>
>
> I think because of the amount of PHP4 users out there this
> would be very beneficial! Do you accept bribes? ;-)
>
> PS I forgot to thank you for fixing this problem in the first
> place. It's been around for ages - Thanks!
>
> -----Original Message-----
> From: Dmitry Stogov [mailto:[EMAIL PROTECTED]
> Sent: 22 February 2007 1:41
> To: David Felton; [email protected]
> Subject: RE: FAO Dmitry - proc_open() update
>
> Hi David,
>
> I didn't have plans to backport this patch to PHP-4.
>
> Dmitry.
>
> > -----Original Message-----
> > From: David Felton [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 22, 2007 2:29 PM
> > To: [email protected]; [EMAIL PROTECTED]
> > Subject: FAO Dmitry - proc_open() update
> >
> >
> >
> > Not sure if this mailing list is the best place to ask you a
> > question Dmitry?
> >
> > I noticed in the latest version of PHP 5 (5.2.1) you have
> > fixed an issue that has been causing us real problems:
> >
> > "Improved proc_open(). Now on Windows it can run external
> > commands not through CMD.EXE. (Dmitry)"
> >
> > We have not been able to run certain executables we have
> > wanted to on our windows web servers because of the issue of
> > opening a security hole by altering permissions on cmd.exe,
> > and it looks like you have fixed the problem.
> >
> > Unfortunately we use PHP 4, and I was sad to see in the
> > latest version of PHP 4 (4.4.5), released 6 days after the
> > above the fix has not been applied.
> >
> > Can you tell me if this fix is ever going to happen for PHP 4?
> >
> > Thanks.
> >
> >
> > **************************************************************
> > ********************
> > This email and any files transmitted with it are confidential
> > and intended solely for the use of the individual or entity
> > to whom they are addressed. If you have received this email
> > in error please notify the system manager.
> >
> > This footnote also confirms that this email message has been
> > swept by MIMEsweeper for the presence of computer viruses.
> > **************************************************************
> > ********************
> >
>
--- End Message ---
--- Begin Message ---
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
The best way I solved a problem like this was to set the CHMOD settings on the
relevant folders in my FTP app (SmartFTP).
Tryst
-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: Thu, 22 Feb 2007 2.04PM
Subject: [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete
a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there!
Thanx for the tip, but I'm searching for ... something that isn't dependent of
ftp...
Best regards
/Gustav Wiberg
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 3:10 PM
To: [EMAIL PROTECTED]; [email protected]
Subject: Re: [PHP-WIN] Rights to delete?
The best way I solved a problem like this was to set the CHMOD settings on the
relevant folders in my FTP app (SmartFTP).
Tryst
-----Original Message-----
From: [EMAIL PROTECTED]
To: [email protected]
Sent: Thu, 22 Feb 2007 2.04PM
Subject: [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete
a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
This sounds like it's just a permissions issue. IUSR (or the user
account that IIS is running under) must have modify rights to whichever
folder your script is trying to delete from. Cheers.
Armando
Gustav Wiberg wrote:
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
I had the same problem when I have tried to migrate from Apache to IIS.
What I know is that with IIS and ASP.NET you have to go under the security
option for your folder and give the right "modify" for the user NETWORK_SERVICE
(under 2003 Server). This allows ASP.NET to delete files (like old logs for
example).
So I thing you may have to find the right user (the one PHP use for executing
its script) and gave it the right rights.
Please keep me informed if you find something.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 09:04
À : 'php windows' ([email protected])
Objet : [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi there!
I know which user it is. The problem is that nothing happens with the
permissons... I assign the Internet IUSR to a specific folder.
Then I try and run my php-script. Do I have to restart IIS?
Best regards
/Gustav Wiberg
-----Original Message-----
From: Styve Couture [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 3:42 PM
To: Gustav Wiberg; [email protected]
Subject: RE: [PHP-WIN] Rights to delete?
I had the same problem when I have tried to migrate from Apache to IIS.
What I know is that with IIS and ASP.NET you have to go under the security
option for your folder and give the right "modify" for the user NETWORK_SERVICE
(under 2003 Server). This allows ASP.NET to delete files (like old logs for
example).
So I thing you may have to find the right user (the one PHP use for executing
its script) and gave it the right rights.
Please keep me informed if you find something.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 09:04
À : 'php windows' ([email protected])
Objet : [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I really don't know. I didn't succeeded when trying the last time. And since I
have been move to another project, I haven't finished my migration from Apache
to IIS on my previous project so...
And it was my last thing to solve if I remember right. :( It is why I'm
interested in the solution. :)
Sorry that I can't help much more.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 10:18
À : Styve Couture; '[email protected]'
Objet : RE: [PHP-WIN] Rights to delete?
Hi there!
I know which user it is. The problem is that nothing happens with the
permissons... I assign the Internet IUSR to a specific folder.
Then I try and run my php-script. Do I have to restart IIS?
Best regards
/Gustav Wiberg
-----Original Message-----
From: Styve Couture [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 3:42 PM
To: Gustav Wiberg; [email protected]
Subject: RE: [PHP-WIN] Rights to delete?
I had the same problem when I have tried to migrate from Apache to IIS.
What I know is that with IIS and ASP.NET you have to go under the security
option for your folder and give the right "modify" for the user NETWORK_SERVICE
(under 2003 Server). This allows ASP.NET to delete files (like old logs for
example).
So I thing you may have to find the right user (the one PHP use for executing
its script) and gave it the right rights.
Please keep me informed if you find something.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 09:04
À : 'php windows' ([email protected])
Objet : [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I would restart IIS. You know the old Windows adage.. when in doubt,
restart.
Styve Couture wrote:
I really don't know. I didn't succeeded when trying the last time. And since I have been move to another project, I haven't finished my migration from Apache to IIS on my previous project so...
And it was my last thing to solve if I remember right. :( It is why I'm
interested in the solution. :)
Sorry that I can't help much more.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 10:18
À : Styve Couture; '[email protected]'
Objet : RE: [PHP-WIN] Rights to delete?
Hi there!
I know which user it is. The problem is that nothing happens with the
permissons... I assign the Internet IUSR to a specific folder.
Then I try and run my php-script. Do I have to restart IIS?
Best regards
/Gustav Wiberg
-----Original Message-----
From: Styve Couture [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 22, 2007 3:42 PM
To: Gustav Wiberg; [email protected]
Subject: RE: [PHP-WIN] Rights to delete?
I had the same problem when I have tried to migrate from Apache to IIS.
What I know is that with IIS and ASP.NET you have to go under the security option for
your folder and give the right "modify" for the user NETWORK_SERVICE (under
2003 Server). This allows ASP.NET to delete files (like old logs for example).
So I thing you may have to find the right user (the one PHP use for executing
its script) and gave it the right rights.
Please keep me informed if you find something.
Regards
Styve
-----Message d'origine-----
De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
Envoyé : 22 février 2007 09:04
À : 'php windows' ([email protected])
Objet : [PHP-WIN] Rights to delete?
Hello!
This is not strictly a PHP-question, but I hope anyone can help me... :-)
What has to be done on the webserver (IIS6.0) and the server if I want to
delete a file from a PHP-script?
I have tested with settings right IUSER.. On the server. But I still can't
delete the files in a specific folder (like images/products)
Best regards
/Gustav Wiberg
--- End Message ---
--- Begin Message ---
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Greetings,
IIS is a cruel mistress. Many of the things that I've thought IIS would
pick up when it recycles the process it didn't. This is particularly
troublesome on a production server.. so you have to make sure everything
is right the first time around, but I digress.
You would THINK that Windows would pick up user permission changes on
the fly -- infact as I think more about it I'm positive that it does.
The best way I've found to test if permission changes take effect is to
just grant global permissions to a folder and see if any errors come back.
In your particular case, are you sure that the file isn't being locked
open by IIS or the PHP process? That would certainly cause PHP to fail
when it attempts to delete the file, and I know that Windows is
notorious for needlessly locking files. Make sure that you are properly
closing your files and that no threads have it open when you try to
delete it. I reckon that would probably take care of your issue.
Good luck!
- -Austin
Styve Couture wrote:
> I really don't know. I didn't succeeded when trying the last time. And since
> I have been move to another project, I haven't finished my migration from
> Apache to IIS on my previous project so...
>
> And it was my last thing to solve if I remember right. :( It is why I'm
> interested in the solution. :)
>
> Sorry that I can't help much more.
>
> Regards
>
> Styve
>
> -----Message d'origine-----
> De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
> Envoyé : 22 février 2007 10:18
> À : Styve Couture; '[email protected]'
> Objet : RE: [PHP-WIN] Rights to delete?
>
> Hi there!
>
> I know which user it is. The problem is that nothing happens with the
> permissons... I assign the Internet IUSR to a specific folder.
> Then I try and run my php-script. Do I have to restart IIS?
>
> Best regards
> /Gustav Wiberg
>
> -----Original Message-----
> From: Styve Couture [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 22, 2007 3:42 PM
> To: Gustav Wiberg; [email protected]
> Subject: RE: [PHP-WIN] Rights to delete?
>
> I had the same problem when I have tried to migrate from Apache to IIS.
>
> What I know is that with IIS and ASP.NET you have to go under the security
> option for your folder and give the right "modify" for the user
> NETWORK_SERVICE (under 2003 Server). This allows ASP.NET to delete files
> (like old logs for example).
>
> So I thing you may have to find the right user (the one PHP use for executing
> its script) and gave it the right rights.
>
> Please keep me informed if you find something.
>
> Regards
>
> Styve
>
> -----Message d'origine-----
> De : Gustav Wiberg [mailto:[EMAIL PROTECTED]
> Envoyé : 22 février 2007 09:04
> À : 'php windows' ([email protected])
> Objet : [PHP-WIN] Rights to delete?
>
> Hello!
>
> This is not strictly a PHP-question, but I hope anyone can help me... :-)
>
> What has to be done on the webserver (IIS6.0) and the server if I want to
> delete a file from a PHP-script?
> I have tested with settings right IUSER.. On the server. But I still can't
> delete the files in a specific folder (like images/products)
>
> Best regards
> /Gustav Wiberg
>
- --
_ _ _
|_|@|_| Good order is the foundation of all things.
|_|_|@| http://php.uat.edu/~ausgruen/
|@|@|@| Public key available on pgp.mit.edu
¯ ¯ ¯
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFF3i2nWqsILSLH8toRAsjNAJ4zU9xygP7WCCb8pJ0p546Z2ykHIgCfXSfz
Y/fIaIbZQ2SO4GStORiIjLw=
=ohnX
-----END PGP SIGNATURE-----
--- End Message ---