Forums / General Questions / Zen uploads images as a different user

Zen uploads images as a different user

Locked
Results 1 to 10 of 10
This thread is locked. New replies are disabled.
24 Jun 2010, 01:48
#1
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Posts:
1,588
Plugin Contributions:
0

Zen uploads images as a different user

I'm helping someone out with their site and noticed something odd I can't explain. I can create a product and upload the image just fine. However, when I access the site via ftp, the file owner (Linux host) of the image file is different than all the zen cart files. I can't figure out how or where the user is set for the images that are being uploaded. All the files uploaded from within the zen admin are one user and all the zen source files are another.
24 Jun 2010, 21:00
#2
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Posts:
458
Plugin Contributions:
0

Re: Zen uploads images as a different user

are your image permissions the same as the php files in other folders?

they should have the same ownership of the account created for that domain
24 Jun 2010, 22:03
#3
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Posts:
1,588
Plugin Contributions:
0

Re: Zen uploads images as a different user

RobWUK:

are your image permissions the same as the php files in other folders?

they should have the same ownership of the account created for that domain


No, the uploaded image files are different that all the php files.

Can you explain 'the account created for that domain'? I think that is the problem but I'm not clear on what account that is?
24 Jun 2010, 22:29
#4
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Posts:
458
Plugin Contributions:
0

Re: Zen uploads images as a different user

Sorry what i meant was, if someone else is letting you have access to their website, they might have created an FTP account for you to use to access their website without having to give you the main servers ftp details. ie you can create an ftp account that is jailed to a certain directory so you can't snoop in any other folder below the folder you are in

but even with the above ftp the ownship should still be the servers name

Is the ownership apache for the files zencart is uploading by any chance?

rob
24 Jun 2010, 22:43
#5
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Posts:
1,588
Plugin Contributions:
0

Re: Zen uploads images as a different user

RobWUK:

Sorry what i meant was, if someone else is letting you have access to their website, they might have created an FTP account for you to use to access their website without having to give you the main servers ftp details. ie you can create an ftp account that is jailed to a certain directory so you can't snoop in any other folder below the folder you are in

but even with the above ftp the ownship should still be the servers name

Is the ownership apache for the files zencart is uploading by any chance?

rob


I thought about that but don't think that's what happening. The owner of the php files is the same as the ftp user login I was given. The owner of the uploaded images files is '99'. I have no idea where the owner or account of 99 is coming from. In installing Zen cart, I don't recall anything that would create an ownership of the files.
24 Jun 2010, 22:47
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Zen uploads images as a different user

That owner will be your Apache webserver.

If that's causing problems for you, you'll need to sort it out with your hosting provider's webserver administrator.
24 Jun 2010, 22:54
#7
robwuk avatar

robwuk

Zen Follower

Join Date:
Aug 2005
Posts:
458
Plugin Contributions:
0

Re: Zen uploads images as a different user

ive experienced something like this a while aback, i thought i had been hacked

it looks like the ownership is 'nobody' apache would have done this

i think you need to get in touch with your person you are helping and get them to raise a ticket with the host
24 Jun 2010, 22:59
#8
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Posts:
1,588
Plugin Contributions:
0

Re: Zen uploads images as a different user

Ah, so that's where it's coming from. What is it that I need them to do or change? How do I ask the question (to be passed along to the hosting company) so it gets corrected?

Thanks!!
24 Jun 2010, 23:24
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Zen uploads images as a different user

Just tell them what you told us. They may not even be able to fix it easily for you.
24 Jun 2010, 23:27
#10
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Posts:
1,588
Plugin Contributions:
0

Re: Zen uploads images as a different user

I'll do that and see how it goes. Thanks for the help!