FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Suggestions » don't chmod 0666
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
don't chmod 0666 [message #7910] Tue, 24 December 2002 16:37 Go to previous message
petej is currently offline  petej   United States
Messages: 2
Registered: December 2002
Karma:
Junior Member
I use FUDforum under a CGIWrap that runs PHP scripts under the UID of the owner of the file, rather than under the UID of the webserver, and CGIwrap won't run a file if it is group writable, so in the places where files are unlocked, the permissions have to be set to 0644, not 0666, and directories need to be 0755, not 0777. It would be good if FUD would pick up these values from GLOBALS, rather than having them fixed in the code, and then, on installation, a check could be made to set the appropriate value in GLOBALS ("Do you run under CGIWrap?" If yes, then set $GLOBALS['UNLOCKED_FILE_PERMS'] to 0644, otherwise set it to 0666, and set $GLOBALS['UNLOCKED_DIR_PERMS'] to 0755, otherwise set it to 0755.

This would make my life easier on the next upgrade, because I'm sure I'm going to forget to change all the 0666 to 0644 and then I'll watch my forums come to a halt until I remember what I had to do.

Thanks,
Pete.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: KOI8-R/WIN-1258 support
Next Topic: Email Notification for PMs
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:55:49 GMT 2024

Total time taken to generate the page: 0.04974 seconds