Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Basic about quota and linux

Posted on 1997-08-31
3
Medium Priority
?
231 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
nicademus earned 100 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

636 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