Connecting Tech Pros Worldwide Help | Site Map

right problems, get crazy

  #1  
Old August 10th, 2006, 01:15 PM
Bob Bedford
Guest
 
Posts: n/a
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.

Bob



  #2  
Old August 10th, 2006, 04:55 PM
Bob Bedford
Guest
 
Posts: n/a

re: right problems, get crazy


"Bob Bedford" <bob@bedford.coma écrit dans le message de news:
44db243a$0$32090$5402220f@news.sunrise.ch...
Quote:
>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.



  #3  
Old August 11th, 2006, 01:35 AM
Jerry Stuckle
Guest
 
Posts: n/a

re: right problems, get crazy


Bob Bedford wrote:
Quote:
"Bob Bedford" <bob@bedford.coma écrit dans le message de news:
44db243a$0$32090$5402220f@news.sunrise.ch...
>
Quote:
>>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.
>
>
>
You don't say what OS you're using, so it's impossible to say.

However, in any case, this sounds like normal operation - files created
under Apache are owned by the Apache user's id, while files uploaded by
ftp belong to the ftp user.

I'd suggest you follow up in a group related to the administration of
your OS.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
  #4  
Old August 11th, 2006, 10:55 AM
Richard Levasseur
Guest
 
Posts: n/a

re: right problems, get crazy



Bob Bedford wrote:
Quote:
"Bob Bedford" <bob@bedford.coma écrit dans le message de news:
44db243a$0$32090$5402220f@news.sunrise.ch...
Quote:
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 FTPon
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.
Assuming this is linux:

You can set the sticky bit of the parent directoy to force the files to
be owned by the user/group of that folder.

Otherwise, you'll have to proxy all file creation through the server's
user so that it can manage them.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
crazy cross-platform javascript rendering problems töff 93722 answers 29 June 25th, 2007 01:15 PM
strange resize problems using inherited VB.NET forms Spam Trap answers 8 November 20th, 2005 05:34 PM
Crystal Reports Cascading parameters don't get preserved between postbacks LP answers 19 November 19th, 2005 06:10 AM
Getting crazy with borders for td/tr's! Gnolen answers 12 July 21st, 2005 02:33 AM