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 [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs

Reply via email to