473,796 Members | 2,640 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1434
"Bob Bedford" <bo*@bedford.co ma é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.co ma é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*******@attgl obal.net
=============== ===
Aug 11 '06 #3

Bob Bedford wrote:
"Bob Bedford" <bo*@bedford.co ma é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
1980
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 Site, yet when I attempt to browse the Default Web Site I get this error: The page cannot be displayed
4
1728
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 G++ 3.2.2, this is dual processors). I have the same set of programs that I wrote and when I ran on the three machines, which have different amount of memories, processors' speeds, and settings. I got three different seg faults at different...
1
993
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 inherits server I also have the following collections
0
2248
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 computer, the problem comes when the file is in a network drive. The most amazing thing is that in one computer I can execute my .Net program without problems independently if the file is
2
2236
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 the navigation pages at the bottom. It does not happen if the page is shorter and has no image. As soon as I put images in the css tables ( loop ) in the middle and ask for more than 10 rows, it goes weird.
15
3668
by: manstey | last post by:
Hi, I have a text file called a.txt: # comments I read it using this:
29
2343
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 in Safari(OSX) ... especially the Gallery, but the rightside menu is funky also. I've "validated" my scripts through a couple different systems, to no
2
1377
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, it returns that the size is 40 instead of 38. I consider that a short is 2 bytes, float 4 bytes, unsigned long 4 byte, unsigned short 2 bytes. If i add all the size of the fields it must be 38 but sizeof says that is 40.
3
1353
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: private void AddToRTFReport(string asText, object aoColor, string asFont,object aoFontStyle, int aiSize, object aoAlignment) { int liLen = rtb1.Text.Length; if (liLen <= 0) {
0
9535
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10465
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10242
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9061
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7558
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6800
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2931
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.