473,405 Members | 2,176 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

right problems, get crazy

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

Aug 10 '06 #1
3 1414
"Bob Bedford" <bo*@bedford.coma écrit dans le message de news:
44***********************@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.

Aug 10 '06 #2
Bob Bedford wrote:
"Bob Bedford" <bo*@bedford.coma écrit dans le message de news:
44***********************@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.
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.
js*******@attglobal.net
==================
Aug 11 '06 #3

Bob Bedford wrote:
"Bob Bedford" <bo*@bedford.coma écrit dans le message de news:
44***********************@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 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.

Aug 11 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: John Caruthers | last post by:
HELP! This problem is driving me crazy. All other web sites that are being served out through this server are working, including sites and virtual directories that are under the Default Web...
4
by: stephenma7 | last post by:
Hi, everybody. I am new here. I have encountered these many problems for the last couple of days. I have Linux Fedora Core 3(Gnu G++ 3.4.2), Linux Fedora Core 2 (Gnu G++ 3.3.3), Red Hat 9 (Gnu...
1
by: Zack | last post by:
I am writing an app using FileSystemWatcher and just went a little class crazy. I have the following classes Server MasterServer inherits server SlaveServer inherits server SiblingServer...
0
by: Sergistm | last post by:
Hello World, :D I have a problem that it is making me crazy, I hope you can help me. I'm trying to execute a .exe file with the Procces.Start, and there is no problem when the file is on my...
2
by: cssbug | last post by:
Hello, I'm going crazy with this bug. If someone could give me a hint. In IE http://acheval.privatedns.com/new/cssbug.asp has a crazy scroll bar that goes left and right while navigating through...
15
by: manstey | last post by:
Hi, I have a text file called a.txt: # comments I read it using this:
29
by: töff 93722 | last post by:
Long story short, I built a website based primarily on JavaScript: http://www.sjcga.com The site renders *great* in WinIE6/7 and in Mac/Win Opera9. It has problems in Mac/Win Firefox2, and...
2
by: =?Utf-8?B?RnJhbg==?= | last post by:
sHi! I have a very strange problem with the behaviour of the sizeof command. I have tested it in vc6,vc 2001 and vc 2003. The problem is quite simple. When I made a sizeof to the next struct,...
3
by: Soulless | last post by:
Hi, I am going crazy trying to resolve a stupid issue. I have a RTB control and created a method to accept a string and (hopefully) set the font and size and alignment... Here is the method: ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.