LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-11-2005, 06:10 PM   #1
untoldone
LQ Newbie
 
Registered: Nov 2003
Location: near DC, USA
Distribution: Slackware 9.1
Posts: 14

Rep: Reputation: 0
change ownership on files written by apache/php to maintain effective quotas


Hi, I have a webserver running apache2 with php4.3.10 in gentoo linux. I also have several users who run php scripts that allow uploading pictures. I am also trying to implement quotas on my ext3 filesystem. However, When each picture is uploaded it is given the user and group 'apache'. All of these components are working correctly, but since the uploaded files are being assigned the user and group 'apache' users are able to surpass their quotas as 'apache' is not their user or group. I was wondering if there was a way to set up php/apache so that uploaded files would have their user and group automatically assigned the appropriate user and group such that my quotas can be effective.

Thanks,
Michael
 
Old 01-14-2005, 02:13 PM   #2
untoldone
LQ Newbie
 
Registered: Nov 2003
Location: near DC, USA
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
Would more information help? If so, what?
 
Old 01-14-2005, 08:18 PM   #3
untoldone
LQ Newbie
 
Registered: Nov 2003
Location: near DC, USA
Distribution: Slackware 9.1
Posts: 14

Original Poster
Rep: Reputation: 0
to clarify -- i was using mod_php.

After spending a bit longer searching around, ive found 2 possible solutions. Using suPHP, however i am not sure if it is ready for use at large scales, or installing php cgi instead of mod_php and using suexec. Both of these solutions will enable me to run the php scripts with a user other than the apache user, and in my case, allow me to put my quotas to use. I am still looking for a solution in which i can still use mod_php ... but i am leaning toward using php-cgi.

Any ideas/ tips?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 2, PHP 5, SuSE 9.2 - cannot run php files dickohead Linux - Networking 6 06-28-2006 11:25 AM
Able to write files to MP3 player but no files written into actual device? olnex Linux - Hardware 0 11-11-2005 07:32 AM
Can't change ownership of files on windows partition alan_the_eagle Linux - Newbie 4 03-27-2005 04:35 AM
sudo: How can i change the ownership of particular files? anoopp Linux - Security 1 03-18-2005 03:03 AM
files copied to RH9 server does not maintain directory strudture eltine Linux - Newbie 1 09-22-2004 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration