public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Ray Olszewski <ray@comarre.com>
To: linux-newbie@vger.kernel.org
Subject: Re: Setting quota on user's home folders?
Date: Wed, 16 Mar 2005 16:31:33 -0800	[thread overview]
Message-ID: <5.1.0.14.1.20050316155238.01f4fb98@celine> (raw)
In-Reply-To: <000001c52a82$0685e340$4f0aa8c0@lanadmin>

At 06:43 PM 3/16/2005 -0500, Eve Atley wrote:

>Is there a way to set a quota limit on user's home folders? EG. say I have
>/home/joe, /home/jane, and want to set it so they can have no more than 5GB
>in their folders?

The general answer is yes, and it's called ... wait for it ... quotas. The 
"yes" assumes you are using ext2 filesystems (probably ext3 works too, but 
I don't know that, and maybe other journaling filesystems like reiserfs).

For quotas to work, they have to be enabled in your kernel. Stock kernels 
usually do not include quota capability, so this means a local compile. (If 
you do it with "make menuconfig", quotas are the first choice in the File 
Systems submenu; if you edit .config by hand, you're looking for the line 
"# CONFIG_QUOTA is not set", which you'll change to "CONFIG_QUOTA=y".)

Once you have a kernel that supports quotas, you'll use the "quota" command 
to set actual quotas. Getting this command will probably mean downloading 
an RPM. And there are a few other details that are covered in the link below.

For more background on quotas, look here:

         http://www.asenec.com/quota.html

If all this sounds like too much trouble ... I don't know how comfortable 
you are with custom kernel compiles, say ... you might look for a simpler 
option. Whether some other approach will work depends on what your real 
requirements are.

For example, way back when I admin'd several Unix and Linux systems at a 
school, I just ran this command daily ...

         du -s /home/*  |  sort -nr

... to get a listing that started with the largest home directories. Then I 
told people whose directories were too big to cut back. Not ideal, but it 
was good enough, back in the days when I was sufficiently inexperienced 
that I didn't want to figure out how to enable quotas on Linux 1.something, 
HP-UX, and Solaris.


-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  parent reply	other threads:[~2005-03-17  0:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16  2:13 SOLVED: Some users locked out of ssh and sftp? Donald Duckie
2005-03-16 23:43 ` Setting quota on user's home folders? Eve Atley
2005-03-17  0:02   ` J.
2005-03-17  0:31   ` Ray Olszewski [this message]
2005-03-17 19:21     ` Peter
2005-03-17 20:00       ` Eve Atley
  -- strict thread matches above, loose matches on Subject: below --
2005-03-23 20:28 Jessica_Schieffer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5.1.0.14.1.20050316155238.01f4fb98@celine \
    --to=ray@comarre.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox