i2genius.com
09-14-2003, 10:03 AM
Sometimes computers make things so damned awkward that the only explanation is a conspiracy!
Can someone help me out here? - I've confused myself terribly.
I have a bunch of services on the Internet. . I have a mechanism, where users can register, and they get a directory created for their files.
I have written the backend stuff in a mixture of perl, PHP and MySQL. This is where my problems start.
Whenever a PHP script creates a file or a directory, it is owned by "nobody".
Whenever a Perl CGI Script creates a file or a directory, it is owned by "mylogin" (say).
If I create a file or directory using one type of back-end script, then I have to ensure that I chmod it to 777 to be able to do anything to it with the other.
This is clearly undesirable.
So what is the common practice here? How can I get all my back-end stuff to cooperate without compromising security?
Confused.
Can someone help me out here? - I've confused myself terribly.
I have a bunch of services on the Internet. . I have a mechanism, where users can register, and they get a directory created for their files.
I have written the backend stuff in a mixture of perl, PHP and MySQL. This is where my problems start.
Whenever a PHP script creates a file or a directory, it is owned by "nobody".
Whenever a Perl CGI Script creates a file or a directory, it is owned by "mylogin" (say).
If I create a file or directory using one type of back-end script, then I have to ensure that I chmod it to 777 to be able to do anything to it with the other.
This is clearly undesirable.
So what is the common practice here? How can I get all my back-end stuff to cooperate without compromising security?
Confused.