Solved

Basic about quota and linux

Posted on 1997-08-31
3
225 Views
Last Modified: 2010-03-18
Hi.
I´m trying to run quota on my Linux machine. I´m using slakware and got the quota support filesystem and of cource the quota program. When I write 'edquota -u [username]' the wonderful vi shows me 'Quotas for user cl:'. And now...what the heck shall I write here??
Greatful for some help.
Claes Lindvall
0
Comment
Question by:cl071997
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
nicademus earned 50 total points
ID: 1586358
It is not just as easy as compiling the programs and installing them.  You first must edit you /etc/fstab file.  I assume you have not done this.  Here is my /etc/fstab file...
/dev/hda3   swap     swap  defaults                     1   1
/dev/hda2   /        ext2  defaults,usrquota,grpquota      1   1
/dev/hda1   /dosc    msdos defaults,usrquota,grpquota      1   1
/dev/hdc1   /dosd    msdos defaults,usrquota,grpquota      1   1
/dev/hdd1   /dose    msdos defaults,usrquota,grpquota      1   1
none        /proc    proc  defaults                        1   1

As you can see, where I have each partition set up, as yours should look somewhwat vaguely similar, all you need to do here is after the "defaults" add ,usrquota (for a by the user quota) and ,grpquota (for by the group quota) on whichever partition(s) you want to keep tabs on.
Next, in your /etc/rc.d/rc.local add a line quotaon -avug (do a man quota to find out what each flag is)

Now reboot, as long as you had installed the program files, and there were no problems compiling them (if you did so) when you log in you can do the edquota -u username and you should be able to understand it a little better, as long as you know how to use vi !
But before you do the above you must build the Dbase by doing quotacheck -vug {filesys} where filesys might be / for the root, or /dosc for the Dos partition, etc.
  The soft limit is a limit which can be crossed by the user, but they will be warned and then there is a time limit for them to remove there files.  The Hard limit can not be crossed at all.  A handy hint, do not give Root a Quota, unless you like being locked out after forgetting to get rid of stuff!

I hope this helps, if not sorry.

Ps.  You can change the default editor by changing the EDITOR environment.

0
 

Author Comment

by:cl071997
ID: 1586359
Thank you. You ought to be in the "HOW-TO"-group.
Now it works.
Claes Lindvall
0
 
LVL 2

Expert Comment

by:nicademus
ID: 1586360
Thank you, much obligued....=)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question