coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: goldrakke on May 13, 2009, 02:08:32 PM

Title: Still problems with ownerships of albums directory
Post by: goldrakke on May 13, 2009, 02:08:32 PM
Hi..

I think that I have a similar trouble as described in the post

http://forum.coppermine-gallery.net/index.php/topic,59305.0.html

Users create directory but they can't put images in them.

After some discussion with my hosting, I have realized that if I create directories in the normal way (mkdir) it gives them apache ownership and I cannot do anything else, they seem blocked and only admins can unlock them and change ownerships. The only way to give them normal access is to give the ownership of my account, and this may happen only if I create them by ftp-php libraries, using the ftp_mkdir function.

How can I hack the script to make this way of creating directory? Where should I change the code?

Thanks
Goldrakke
Title: Re: Still problems with ownerships of albums directory
Post by: Nibbler on May 13, 2009, 08:38:40 PM
You can't easily do that. You should be able to use the 'default mode for directories' option in Coppermine to allow the created directories to be writeable though.