LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2004, 08:14 AM   #1
Anibal
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slack/Ubuntu & OpenBSD (not a linux distro)
Posts: 56

Rep: Reputation: 15
Quota for an user


Hi,
i'm new to this quota thing, i configured everything to use quota but what will be the value if a want to give 25 MB disk quota on a disk for an user ?

edquota -u username

Disk quotas for user curtones (uid 1006):
Filesystem blocks soft hard inodes soft hard
/dev/hda1 1268 0 0 173 0 0

i don't get this blocks thing & inodes.. sorry i know is a shame :-(
 
Old 06-01-2004, 10:33 AM   #2
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
According to the Quota mini HOWTO at http://www.tldp.org/HOWTO/Quota.html , one block is one kilobyte (1024 bytes). So, 25 MB * 1024 KB/MB = 25600 KB = 25600 blocks.

I believe (correct me if I'm wrong) that each file and directory uses an inode, so the inode limit restricts the number of files and directories a user can own.

Last edited by eric.r.turner; 06-01-2004 at 10:38 AM.
 
Old 06-01-2004, 10:42 AM   #3
Anibal
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Slack/Ubuntu & OpenBSD (not a linux distro)
Posts: 56

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by eric.r.turner
According to the Quota mini HOWTO at http://www.tldp.org/HOWTO/Quota.html , one block is one kilobyte (1024 bytes). So, 25 MB * 1024 KB/MB = 25600 KB = 25600 blocks.

I believe (correct me if I'm wrong) that each file and directory uses an inode, so the inode limit restricts the number of files and directories a user can own.
Ok got that.. but what i don't get is, what do this mean ?

Disk quotas for user curtones (uid 1006):
Filesystem blocks soft hard inodes soft hard
/dev/hda1 1268 0 0 173 0 0


blocks 1268
inodes 173

Wht should the soft & the hard be ?
 
Old 06-01-2004, 12:37 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Going by the doc's that I've if soft and hard limits are set to zero the user has unlimited disk use, so I guess you have to set them.

The soft limit is a limit that once the user goes over it they have a grace period of a few days ,or whatever length that you can set, to get their disk usage back under the soft limit else the soft limit becomes a hard lmit. The user is then unable to write to the disk.
 
Old 06-02-2004, 12:14 AM   #5
eric.r.turner
Member
 
Registered: Aug 2003
Location: Planet Earth
Distribution: Linux Mint
Posts: 216

Rep: Reputation: 31
Quote:
Originally posted by Anibal
Ok got that.. but what i don't get is, what do this mean ?
Read the mini HOWTO (yes, all of it.) What it shows for blocks and inodes are current usage. The hard and soft limits at zero mean unlimited.
 
  


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
User quota limit ust Linux - General 1 12-16-2004 07:55 AM
user quota ust Linux - Software 1 08-25-2004 10:53 AM
About user quota... raymond Linux - General 4 08-27-2003 01:01 AM
User Quota chuck77 Linux - General 3 11-16-2002 10:21 AM
about user quota... raymond Linux - General 2 11-09-2002 11:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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