| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Sat Sep 04, 2004 12:36 am Post subject: FTP Photos Problem |
|
ok, either i'm too tired to think, but i can't seem to upload photos in coppermine's user's galleries...
when a member uploads their private photos to their gallery (i had left this to yes instead of no - need admin approval) and so people uploaded some photo's that needed cropping : )
so i ftp'd them down and cropped them and when i tried re-uploading them, trying to replace the photo, it wouldn't work...says permission denied in ftp and in my cpanel it won't overwrite...even when chmod'd to 777
what's up with that? : )
i just want to reinsert these "edited" photos...
thanks
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: Sat Sep 04, 2004 1:18 am Post subject: Re: FTP Photos Problem |
|
you server is misconfigured and php(coppermine) is creating the photos as a different user (prob nobody) therefore you can't access them via ftp.
So if you don't have shell access (otherwise chown the scripts and pictures to your apache username) you must delete the photos from within coppermine then reupload, backup the db first so you can reinsert the info to the pictures tables about the pics...
_________________ AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM
Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Wed Sep 08, 2004 4:18 pm Post subject: Re: FTP Photos Problem |
|
you mean this has to be done every time?
is this a bug in coppermine?
can't coppermine decide to use the current user to create albums?
thanks
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: Wed Sep 08, 2004 7:43 pm Post subject: Re: FTP Photos Problem |
|
| Quote:: |
| your server is misconfigured |
When i said user i mean Apache user not cpgnuke user
_________________ AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM
Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Wed Sep 08, 2004 8:24 pm Post subject: Re: FTP Photos Problem |
|
yeah i understood you the first time...
i thought that coppermine created its own "nobody" user in apache versus using the current apache user to create directories...
figured this is a bug
i'll contact the server folk
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Thu Sep 09, 2004 2:54 pm Post subject: Re: FTP Photos Problem |
|
akamu here is my server reply:
| Quote:: |
The person who created the script looks like is unaware on how php works in an apache webserver. It has to create the uploaded images in the user nobody. I have changed the permissions now so you can access them via ftp as well.
Your shell access is also activated so you can login and make any changes you want.
Let us know if you need further assistance.
Regards,
Masood |
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Thu Sep 09, 2004 4:19 pm Post subject: Re: FTP Photos Problem |
|
i have to agree with my server folk that coppermine has a bug when creating directories...
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
alexm 500+ Posts Club


Offline Joined: Apr 20, 2004 Posts: 574 Location: Lafayette, LA USA
|
Posted: Thu Sep 09, 2004 7:07 pm Post subject: Re: FTP Photos Problem |
|
| masterbeta wrote: |
akamu here is my server reply:
| Quote:: |
The person who created the script looks like is unaware on how php works in an apache webserver. It has to create the uploaded images in the user nobody. I have changed the permissions now so you can access them via ftp as well.
Your shell access is also activated so you can login and make any changes you want.
Let us know if you need further assistance.
Regards,
Masood |
|
That's a new one. If your webserver is allowed to create files using a uid other than that of the webserver, you've got bigger problems than coppermine file uploads.
alex
_________________ The master will be pleased...
alexm's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Shared Host / Linux / Apache 1.3.23 / Mysql 3.23.58 / PHP 4.3.3 / CPG 8.2b & 8.3CVS
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Thu Sep 09, 2004 7:14 pm Post subject: Re: FTP Photos Problem |
|
how so?
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
NEMINI Diamond Supporter


Offline Joined: Apr 22, 2004 Posts: 4551
|
Posted: Thu Sep 09, 2004 7:16 pm Post subject: Re: FTP Photos Problem |
|
| masterbeta wrote: |
| i thought that coppermine created its own "nobody" user in apache ... |
Now lets think about that for a minute. Wouldn't that be pretty insecure if any program could just create a nobody user on your server?
_________________ NEMINI.org, NEMINI.us, NEMINI.info, NYMINI.org
NEMINI's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) 1.3.34 (Unix)/4.1.18-standard/4.4.2 /9.1.0.8 CVS
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Thu Sep 09, 2004 7:25 pm Post subject: Re: FTP Photos Problem |
|
no, the problem is that coppermine didn't create a user....it just created directories with photos using the db configuration (access priviledge) but it didn't assign any user to those directories...
in othe rwords it didn't assign access to anyone
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
Śyama_Dāsa Developer


Offline Joined: Apr 19, 2004 Posts: 2048 Location: Dragonfly CMS Tribe
|
Posted: Thu Sep 09, 2004 8:23 pm Post subject: Re: FTP Photos Problem |
|
It is because the script itself runs as nobody
_________________ AKA Akamu / Read these and your life will be successful | Find a Repair
--
Mods and Professional Support via YIM
Śyama_Dāsa's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) win32 / Apache 1.3.33 / MySQL 4.1.16/PHP 4.4/CPG-CVS ( browsers: Mozilla 1.7.x / IE6 / Opera 8.0)
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Fri Sep 10, 2004 1:50 pm Post subject: Re: FTP Photos Problem |
|
can that be changed to run as the current user? like the other scripts do?
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
outerverse Newbie


Offline Joined: Nov 09, 2004 Posts: 45
|
Posted: Tue Nov 09, 2004 9:08 pm Post subject: A problem with ownership |
|
I don't know why but any file uploaded (or folder created) by the Coppermine has a group/owner of 99. That causes me (the site owner) not to be able to take ANY action using cPanel or FTP. I need to be able to do this because I have deleted pictures that aren't being removed from the server, just the database.
Also a note should be made that this is a shared host and I do not have root or shell access.
outerverse please enter your server specs in your user profile!
|
|
| Back to top |
|
 |
masterbeta Translator


Offline Joined: May 12, 2004 Posts: 1049 Location: Reading, PA
|
Posted: Sun Nov 21, 2004 3:24 pm Post subject: Re: A problem with ownership |
|
yes, the problem lies with coppermine, has this issue ever been resolved?
coppermine creates the directories and files with user "nobody" that no one can access unless you are the server admin.
not very nice for shared hosts...
everytime i need to edit a photo from someone's upload i have to have my server folk reset the permissions so i can overwrite/delete the file off the server (usually i can download then edit the photo, but in order to re-upload i need the server perms reset in those coppermine directories)
_________________ []D [] []\/[] []D
Check out my bear site - www.insidebear.com
masterbeta's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) RHL7 2.6.9-67.0.15ELsmp/A1.3.41(Unix)/MySQL4.1.22-standard/PHP5.2.5-ZO/Dragonfly 9.1.2.1
|
|
| Back to top |
|
 |
|
|