You are here: Re: right problems, get crazy « PHP Programming Language « IT news, forums, messages
Re: right problems, get crazy

Posted by Bob Bedford on 08/10/06 16:05

"Bob Bedford" <bob@bedford.com> a ιcrit dans le message de news:
44db243a$0$32090$5402220f@news.sunrise.ch...
>I understand nothing about the rights !
>
> I create directories and subdirs by php scripts. I've an admin accound,
> and trying to delete files by FTP, I've not the right to. Admin should
> have ALL rights, isn't ? Why may I not manage the files and dirs by FTP on
> the admin account if created by a php script ?
>
> Please help I'm getting crazy.

Ok I've figured out where the problem is but don't know how to fix it.
My customers use different programs to send datas on my server. Each program
has his own FTP access and in their own space.
I mean on my server, when I create a new user, I've a new architecture. Here
is the way it works:
web/ where the website code is.
when creating a user, say xxx
users/xxx/data ftp access with his own user/pass.

Now my scripts can access the users/xxx/data directory and manage the images
sent. Every image is resized and then copied in my web/clients/image
directory

When using one script from images coming from the program X, the owner is
http.
When using one script from images coming from the program Y, the owner is
the Y program ftp user.
Why ? I can't modify, change, manage those images, as I've no right on it.
My script are running under httpd user, so how to change the script user for
such file in that way I'll then change the file owner.
Please help.

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация