I am creating a mod_perl Apache module.  The last functionality that I need
to implement is the ability to set the UID of the files and directories
which are created and modified by the Apache module to something other than
Apache's child UID.

For example, if when I built Apache 1.3.14 on Linux 2.2.17, I used:
APACI_ARGS=--server-uid=300,--server-gid=300
Later, my module creates a file "myfile.html".  I want to change the file's
UID from 300 to 3000, from within the Apache module.

I was going to set the file permissions to 750 and keep the Apache GID.
The directory permissions could be set to 770 in order to let the Apache
module create, modify, and delete files within the directories.  In this
way each file would provide exclusive (modify and create) access rights in
a shared user environment.
 
Any ideas about the best way to change the permissions and UID?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to