[PHP] Re: What permissions for uploading?

2002-03-15 Thread Luke Welling


"Leif K-Brooks" wrote:
> I have a script that allows the user to upload a file.   Right now,
though,
> it says permission denied when I try to upload.  The permissions for the
> folder I want to upload to is 755 right now.  What should I change it to?

Are you checking the permissions on both the folder you want to copy the
uploaded file to and the temp directory that it needs to go to first?

Luke Welling
--
PHP and MySQL Web Development
Luke Welling and Laura Thomson
http://www.amazon.com/exec/obidos/ASIN/0672317842





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: What permissions for uploading?

2002-03-13 Thread jtjohnston

Not to but in, but you might want to check on your version. www.php.net
published an advisory on a possible flaw on that very issue:

http://www.php.net/release_4_1_2_win32.php
http://security.e-matters.de/advisories/012002.html

Leif K-Brooks wrote:

> I have a script that allows the user to upload a file.   Right now, though,
> it says permission denied when I try to upload.  The permissions for the
> folder I want to upload to is 755 right now.  What should I change it to?

--
John Taylor-Johnston
-
  ' ' '   Collège de Sherbrooke:
 ô¿ô   http://www.collegesherbrooke.qc.ca/languesmodernes/
   - Université de Sherbrooke:
  http://compcanlit.ca/
  819-569-2064



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: What permissions for uploading?

2002-03-13 Thread Jim Koutoumis

That'd depend upon who owns the directory and what user your web server is
running as.

If the folder, or directory is owned by the user the server is running as
then the permissions should be OK. Due to your error message I'd guess they
don't have write access.

Permissions of 766 might be enough. Although I'd make sure that the
directory is owned by the user the server is running as and then make it
700.

You're in a non-Windows environment - yes ??

Jim.

"Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a script that allows the user to upload a file.   Right now,
though,
> it says permission denied when I try to upload.  The permissions for the
> folder I want to upload to is 755 right now.  What should I change it to?
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php