LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-19-2003, 03:33 AM   #1
macadam
Member
 
Registered: Sep 2003
Posts: 72

Rep: Reputation: 15
Directory size limit


Hi!

I have a server running apache.
Users can access their dir via FTP and I can set a quota on these users...works fine.
However, when uploading files via the web interface, the owner of the file is apache and not the owner of the directory...so the quota for that user is not working...and users can exceed their quota.
I think there is no way to set directory size limits but is possible to change automatically the ownership of files in a directory. i.e.: all files ownership=directory ownership?

Thanks

macadam
 
Old 09-22-2003, 02:00 AM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
If you want to change he ownership of files for a directory You can use the umask command within the directory

Check out this website for more details on using umask
http://hep.pa.msu.edu/user/groups.html
 
Old 09-22-2003, 02:07 AM   #3
macadam
Member
 
Registered: Sep 2003
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks,

great. That's what I needed!!!
 
Old 09-22-2003, 12:06 PM   #4
macadam
Member
 
Registered: Sep 2003
Posts: 72

Original Poster
Rep: Reputation: 15
Well in fact, it works for files uploaded via ftp. But as soon as the files are uploaded via a php webpage, they get the user and group of Apache server...
Any idea?

thanks
 
  


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
Limit Users Home Directory Size KrGAce Linux - Newbie 6 10-24-2005 09:48 AM
/home/directory size limit Smokey Slackware 2 11-04-2004 03:11 PM
How to LIMIT my HOME DIRECTORY SIZE??? juliann Linux - Networking 2 07-21-2004 09:08 AM
Mandrake /home directory size Limit problem psyientist Mandriva 9 05-14-2004 03:51 PM
Directory Size Limit?? _TK_ Linux - General 9 09-05-2002 09:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:26 PM.

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