LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-30-2009, 02:01 PM   #1
Sylverston
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
setting users max disk space usage


Hello to every one,

I just want to know if it's possible to set a maximum disk space usage for every single user?

thanks in advance.

S.
 
Old 06-30-2009, 02:05 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
check about ulimit and user quota
http://www.ss64.com/bash/ulimit.html
http://www.linuxhomenetworking.com/w...ge_with_Quotas
 
1 members found this post helpful.
Old 06-30-2009, 02:35 PM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Yes, actually.
Most modern UNIX distributions have some sort of user quota feature. Recent Linux distributions both "disk" quotas (how much space on a given filesystem a user can take up) and "user" quotas (how much total space across all disks can the user nab).

Quotas limits typically come in two flavors, "soft" (some logs are generated and maybe an email is sent out), and "hard" (drop-dead stop for the user).

The commands used to manage quotas differ between UNIX variants, however on most Linux distributions they're consistent;

Linux Distributions:
(Taken from a CentOS server)
quota - can be run by any user, displays their current quota limits and current allocations. A SuperUser can view other user's usage, whilst normal users can only see their own usage.
edquota- Used by the SuperUser to set, alter, and remove quotas.
quotaoff - disabled quotas (off by default)
quotaon - enables quotas (off by default)

Word to the Wise: When you first start to experiment with quotas, you may see "quota.user" or "aquota.user" files start to pop up in the strangest of places. Do NOT alter those files (change permissions, ownership, cat /dev/null to them, or otherwise remove them). Those are DataBase files that contain the quota information for that particular volume, and things will get very angry with you if that file is removed. Note however that if you're using an XFS filesystem, you needn't worry. The quota information is inserted directly into the filesystem.

P.S: If you're looking for how to manage quotas on other UNIX systems like Solaris, HP-UX, or even IRIX, look for the "UNIX Rosetta Stone" (Mysterious name is intentional).
 
Old 07-01-2009, 02:51 AM   #4
Sylverston
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you every body
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
How to get the disk space usage using /proc kbarani Linux - Software 1 01-06-2009 04:26 AM
Disk space usage 100% on / Daliz Linux - Software 6 10-24-2004 11:03 AM
max disk space for a linux partition blas Linux - General 5 04-04-2003 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:22 PM.

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