Umask problems with mailing list integration [message #26388] |
Tue, 19 July 2005 21:30 |
blackops
Messages: 12 Registered: July 2003
Karma: 0
|
Junior Member |
|
|
My FUDforum version: 2.6.15.
I have successfully set up several instances of FUDforum + mailing lists. However, on a particular client's server, the configuration is somewhat non-standard. As a result, some scripts are running as non-standard users.
One of the negative side effects I've found is that, when I post for the the first time to a given forum, the umask for the [non-browseable-directory]/message/msg_n00000 file is not set broadly enough that all the necessary processes will complete successfully.
Example: if a mailing list user is the first to post to the list, then the permissions are
Then, when a web user tries to reply or post a new message for that forum, he gets an error, because the php script running under the web user is not the owner of the file.
Conversely, if a web user first posts to a given forum, then the permissions are
This is a little better, but still doesn't work, because the mailing list user (which is the user that runs maillist.php when it is triggered in the .qmail file) is not the owner.
Basically, I'd like the file to be created with the following permissions in all cases:
That way, regardless of who creates the first message, the cross posting will work.
The bigger issue here, of course, is that I do not understand how the umasks are set in the FUDforum code. There is a seemingly random string (GLOBALS.php: FUD_OPT_2), against which various operations are done to determine the appropriate umask for a given command. I have not been able to devote the necessary time/effort to figure out what is going on with this.
Anyway, if anybody can explain to me how to get the umask I want, that would be wonderful.
Thanks ahead of time, one and all.
|
|
|
|
|
|