LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-04-2004, 04:10 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Rep: Reputation: 32
Sample quota wanted


Hi all i thnk i have mine going No errors on boot, apart from one right at the end of the boot up were all the green ok's are, some thing about events message i think.

can some one give me a example of a quota -u please.

I have set mine to 50MB but its still letting me upload more and i'm not sure if i have it right.

here is my quota

Code:
[root@rockinghamgateway root]# quota -u tommy
Disk quotas for user tommy (uid 500):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda2  134728       0       0               9   50000   50000
[root@rockinghamgateway root]#

I real dont want to give up on this one, its driving me nuts

TT
 
Old 09-04-2004, 02:52 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Looks like you set yourself a limit of 50000 files, not 50MB. Go into edquota and change the soft and hard limits for blocks. By the way, from your other posts, I see that you created the quota files yourself. You could have just let the system do it for you (the option "usrquota" in fstab will trigger that when you boot).
 
Old 09-04-2004, 07:12 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Yes, say for example if I wanted to set my own limit to myself on my system to 50megs, it would or should look like this:

Code:
Disk quotas for user drew (uid 101):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda8                    139352      50000      50000      10        0          0
Though at times you should always make the soft limit a little smaller than the hard.. that way usually on most systems the user is notified that they are reaching their limit.
 
Old 09-05-2004, 02:12 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Original Poster
Rep: Reputation: 32
Thanks guys

I went to edit tommy quota and it wouldn't let me do it

Do i have to be in init 1 mode to do it ?

I was able to add another user quota ok and the FTP limits work ok.

TT
 
Old 09-05-2004, 11:01 AM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
To edit your quota, you need to do this as root:
Code:
edquota -u tommy
and change the limits as shown above (only, a 50MB limit won't do, since you're already using around 135MB). You do not need to go to runlevel 1 for this.
 
Old 09-05-2004, 10:42 PM   #6
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 12.04 - Server 12.04.4 LTS
Posts: 939

Original Poster
Rep: Reputation: 32
yer the 135 file was a test

here is the error i get

Code:
[root@rockinghamgateway root]# edquota -u tommy
edquota: Bad format:
  /dev/hda2                       740      50000      50000         86

edquota: Can't read quotas from file.
[root@rockinghamgateway root]#
as i said i can create it ok, but not edit it.

TT
 
  


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
Sample Questions LinuxRam Linux - Certification 52 11-16-2013 11:03 AM
libgcrypt sample D. Marowa Programming 1 08-26-2006 06:11 AM
fstab sample kpachopoulos Fedora 1 07-15-2005 09:50 AM
ftp quota probs - 0kb files at quota limit ph_xm Linux - Newbie 0 02-02-2005 12:13 PM
No sound sample 1948chev Linux - General 2 05-07-2004 04:55 PM


All times are GMT -5. The time now is 10:51 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration