Coppermine uploading photos as "apache" causing ma Coppermine uploading photos as "apache" causing ma
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Coppermine uploading photos as "apache" causing ma

Started by ganjauk, February 05, 2004, 04:04:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ganjauk

Coppermine is uploading photos with the username "apache" because of this, my webshell is becoming full of pics that i cannot remove. How can i change it so it uploads with my own username, i can only edit/delete files in my webshell under my own username.


(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fserver5.uploadit.org%2Ffiles%2Fganjauk-cantdelete.jpg&hash=181bf6999c6e69aa04bdecd258ba354e62bbada0)

Coppermine itself fails to delete these pics too.

s0ber

I think you need to contact your administrator about that...
On my old webhosting it would upload files as apache as well but I was able to delete/change them just like any other file under my username/group...

I dont _think_ its a coppermine issue itself. Doubt it anyways.

-s0b

ganjauk

I have been on to my host all day, but the fact is i cant delete files uploaded under the name apache, so is there some way i can change how coppermine uploads these pics.

Any ideas would be great, thanks.

moorey

Did you get your host to installer Coppermine for you? It's probably installed under the username 'apache'. You could request your host to have your username in the same usergroup as apache/gd/im. Otherwise, try changing the file permissions to 777.

You'd have to work this out with your host.

ganjauk

No, i installed it myself.
Every folder than coppermine creates for users pics, ie:10002 etc, becomes totally permanant.

My host tells me:
Quotescripts themselves should be able to delete files -
take a look at the php unlink() function.

This mean nothing to me, i dont code these things, i just install them.  :roll:

Is there any way i can resolve this from within coppermine itself? Even when folders was chmod 777 they still dont delete as they are under the wrong username.

moorey

Ok first things first.. what method are you uploading your photos and where to?

If you're using FTP, the photos are suppose to go to
Quote/cpg/albums/albumnames/
*Not*
Quote/cgp/albums/userpics/blah/

For deleting, you shouldn't really be using FTP anyway - you should be instructing CPG itself to do the deleting. That is the cleancut way.

Then check on the permissions.. 644 doesn't look right but then again, do check on the above first.

ganjauk

Batch upload works fine and i upload to the folders you listed, its when users upload their own it creates its own folders like you listed above and thats the chmod of them, the only files/folders i cannot delete with ftp are the files users upload via coppermine.

Also coppermine is unable to delete files users upload, when i click delete, it deletes the comments and removes the pic from the coppermine gallery, all the rest it fails on, red icons, it cannot remove the source images from the webshell.

hyperion

It seems you are using Nuke.  Did you ask the Nuke board about this problem?

http://coppermine.findhere.org
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

ganjauk

I did yes but noone was kind enough to reply.  :roll:

I figured the nuke port would be irrelevant to the way coppermine uploaded files so i tried here after i posted at the other board. Hope that's not a problem.

moorey

Do you have shell access (ie telnet or ssh)?
Can you chmod all the files to 777 instead of just the folder?

ganjauk

I can't chmod anything that coppermine uploads under username apache, i get the access denied, i can only chmod files and folders that i created myself.

Joachim Müller

this is a matter of server setup: the script runs under the permission of the server-user "apache". Contact your webhost what to do about this...maybe the can chmod the /albums folder (and everything that's within it) for you once and you should be fine... Not really a coppermine issue imo.

GauGau