LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-21-2001, 06:59 AM   #1
_TK_
Member
 
Registered: Feb 2001
Posts: 54

Rep: Reputation: 15

Anyone know if there is a way to limit the size of a directory? I have a directory that will be used for uploads from an html page served by the apache web server. I would like to only allow this directory to consume 10meg. Can this be done? I'm using RH 7.0
 
Old 04-21-2001, 09:14 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
You could do this using quota's. 'man quota' should get you started. If you have any other questions let us know.
 
Old 04-22-2001, 02:33 PM   #3
_TK_
Member
 
Registered: Feb 2001
Posts: 54

Original Poster
Rep: Reputation: 15
I looked into quota but I don't know how to apply it to a directory. It seems only for users and groups.
 
Old 04-22-2001, 03:28 PM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
You could make a new user, own the directory to the user, and then setup a quota for the user.
 
Old 08-26-2002, 01:38 AM   #5
neoblade
LQ Newbie
 
Registered: Aug 2002
Distribution: RH 7.3
Posts: 6

Rep: Reputation: 0
well i read this but: If i have a webserver and a ftp server.. it means two directories for one user, but different size to each one ... how can i do this ... quota? it seems not ...

hopeful for help

neoblade
 
Old 08-26-2002, 01:43 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Make 2 users.
 
Old 08-26-2002, 02:07 AM   #7
neoblade
LQ Newbie
 
Registered: Aug 2002
Distribution: RH 7.3
Posts: 6

Rep: Reputation: 0
funny .... 120 user (at this time) use this server ok .. no problem .. 120 user 120 passwords .. but: 240 users and each user you have to tell i'm sorry you have two passwords :-p ... ... THE USERS ON THIS SERVER have no idea how it works or something else --------> i've to send their password all day 24 hours ... i forgot the password i forgot the username .. how can i do this how can i do that ... :-) .. ok the password maybe the same but for the user it is no different in username and password, one string more that they have to know


other ideas ? ...


sorry about my awful english

neoblade
 
Old 08-26-2002, 02:12 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Oh no, I mean create 2 users to own the 2 different directories, and then set quotas on those 2 users, not on 240. This would limit the size of the directory owned by that user.

Does that make sense?
 
Old 08-27-2002, 03:06 AM   #9
neoblade
LQ Newbie
 
Registered: Aug 2002
Distribution: RH 7.3
Posts: 6

Rep: Reputation: 0
but all 120 users have access to ftp server and a web directory for their homepage ...

but: with quota can i make a group or two ftp and web for example and two directories or 240 or more ... and own this to one user and this group .. and the group right limit the size?

yes or no?

and how i have to enter the quota ... quota -g ftp (and the size ???)

neoblade
 
Old 09-05-2002, 09:38 AM   #10
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Just for a quick help, might be worth checking out a tutorial:

http://www.yolinux.com/TUTORIALS/Lin...ialQuotas.html
 
  


Reply



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 On
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 macadam Linux - Newbie 3 09-22-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:38 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