Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy permissions

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
I am having truble with file permissions.
I am creating directories using 0775.

mkdir($path,0775);

This works fime and allows me to delete it fro my ftp program. The problem occurs when I copy files into that directory.

umask(002);
copy(old,new);

Even if I do not use umask I get the same error - 550 permission denied - and changing permissions is also not allowed.

What is going on here?

[bb]
 
i think you should create dir with 777 permission
 
doesn't work either, I tried that first. At php.net they say use 775. I have discarded PHP for this type of application, it simply sucks far too much.
 
change the mode of the directory where the new directory is being created to allow others to write and execute
 
550 error is a HTTP Server error, and not of filesystem permissions error.

The script you are trying to run has the right permissions? the one witch runs the copy function? Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top