System Administration: How to limit users' available storage space
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
System Administration: How to limit users' available storage space
I have installed two Linux OSs, Mandriva and Debian. Each operating system is on a 15Gb partition and I would therefore like to limit how much users can store in their home folders and in general (anywhere else for that matter). I'd like to limit the totality of each user's storage space to 1Gb. There are children using the computer, and the computer will be used primarily for playing games, web browsing, IM, etc., not for storing files. I had a look at the GUI tools in KDE and GNOME but wasn't able to find anything that allowed me to do this. I tried googling it, but didn't find an answer to my question (wrong keywords?). Does anybody know if this is possible, and if it is, how to do it? What is the main configuration file? Is there a default user configuration file?
Okay, I gave it a try - or tried giving it a try! - but there's a problem. Everything in each of my two Linux distros are mounted to "/". There is no separate "/home" partition. It seems that the first thing I have to do is to edit my /etc/fstab file and add "usrquota" to the list of options. In the HowTo's I've consulted, this is not done to the entire "/" partition, but only to the "/home", "/usr" or other partition. Can I do this to the entire "/" partition? Will this affect the "system" users (not actual users, but the actual system)? Kids will be using the computer and so I want put a hard limit of 1GB for each user. There will be 4 user accounts and there's only 15GB of space available for each distro (actually, not even, because that includes everything (system, etc.), everything except swap). Each distro is on a 15GB partition.
Can I use the 'usrquota' option on "/"?? Might this cause problems later on?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.