LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 03:10 AM   #1
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

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, 01: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, 06:12 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 01:12 AM   #4
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

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, 10: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, 09:42 PM   #6
tommytomato
Member
 
Registered: Nov 2003
Location: Narrogin Western Australia
Distribution: GUI Ubuntu 14.0.4 - Server Ubuntu 14.04.5 LTS
Posts: 963

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



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

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

All times are GMT -5. The time now is 05:23 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