httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Moor" <eetas...@online.ee>
Subject [users@httpd] Re: How to create file which can be deleted by other
Date Sun, 11 Jan 2004 20:53:05 GMT
>Andrus, I write apps in Perl and PHP mainly but I don't think the language
>used is relevant. At the time you create the file change the permissions to
>777, or the least restrictive you can arrange; e.g. if the other user can
>be put in the same group as the creator of the file then 664 might be
enough.

Marty,

this is exactly what I tried to do by calling

umask(0);

before fopen().
For some strange reason, umask(0) makes file readable and writeable by all
but does not allow its deletion like umode 0777 shell command.

I don'nt know how to correct my C code to allow deletion.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message