LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directory size limit (https://www.linuxquestions.org/questions/linux-newbie-8/directory-size-limit-94431/)

macadam 09-19-2003 03:33 AM

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

zatriz 09-22-2003 02:00 AM

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

macadam 09-22-2003 02:07 AM

Thanks,

great. That's what I needed!!!

macadam 09-22-2003 12:06 PM

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


All times are GMT -5. The time now is 04:17 PM.