Solved

Basic about quota and linux

Posted on 1997-08-31
3
223 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now