NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 10-10-2007 01:03:20

Dax
New member

SuPHP and Wacintaki

Got a bit of a dilemma... We're running SuPHP on our server, which runs any php script as the owner. Here in lies the problem. Everything works fine, pictures are created and posted.. but since they're posted as the owner of the php script (kyrin, in this case), the webserver won't read the pictures since the webserver runs as nobody, and the pictures are being chmodded 600. Is there anyway to change whatever script is posting the pictures to chmod the files to 655 or something similar?

Thanks in advance.

Oh, and this is a brand new install of the latest version.

Last edited by Dax (10-10-2007 01:13:34)

Offline

#2 10-10-2007 07:38:10

Waccoon
Administrator

Re: SuPHP and Wacintaki

Yes.  Try this patch:  CHMOD mod

The setting to enable the CHMOD mod is in "hacks.php" under the name "GROUP_READABLE".  Set it to 1 to force a new CHMOD number for pictures, animations, and avatars.

The default is 0644.  If you need to change that, look for the function w_group_readable() in "common.php".  Make sure whatever number you use is a string with the zero prefix intact.

Please let me know if this works properly, since I use a Windows machine for testing, so I can only test the owner octal, not the group octal.

Offline

#3 10-10-2007 10:44:01

Dax
New member

Re: SuPHP and Wacintaki

Waccoon wrote:

Yes.  Try this patch:  CHMOD mod

The setting to enable the CHMOD mod is in "hacks.php" under the name "GROUP_READABLE".  Set it to 1 to force a new CHMOD number for pictures, animations, and avatars.

The default is 0644.  If you need to change that, look for the function w_group_readable() in "common.php".  Make sure whatever number you use is a string with the zero prefix intact.

Please let me know if this works properly, since I use a Windows machine for testing, so I can only test the owner octal, not the group octal.

Yep, worked fine!

Thanks a bunch!

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB