Page 1 of 1

deletion issue (unlink wont work)

Posted: Mon Jul 12, 2004 10:33 pm
by m3rajk
one script uploads a file and the print out is something like
[dcfydllc@seed npWenS]$ ls -ls *112*
20 -rw------- 1 nobody nobody 18455 Jul 8 15:01 main.112.jpg
and when the deletion runs from the browser, it does not remove the image.

since they both run as nobody, i fail to see why it cannot remove the picture. it's not write protected

does anyone have any suggestions?

Posted: Mon Jul 12, 2004 10:57 pm
by m3rajk
note: it should be coming up -666 because umask is called with 0111 and umask is 0777-umask for new permissions (if i understand it right)

http://us2.php.net/manual/en/function.umask.php

Posted: Mon Jul 19, 2004 10:32 am
by m3rajk
is there anyone here that has expereience with unlink?

Posted: Mon Jul 19, 2004 10:37 am
by feyd
if you sent 0111 to umask, it should set the mask to 0111, not 0666...

0111 & 0777 = 0111