The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
max size of a group in /etc/group antalexi AIX 4 05-11-2008 09:01 AM
home directory & group in UNIX question Katkota UNIX for Dummies Questions & Answers 3 01-06-2008 10:21 PM
Volume Group Size ugxd14 AIX 3 09-11-2006 11:26 AM
limiting the size of syslog log files dmirza UNIX for Dummies Questions & Answers 1 10-12-2005 07:26 PM
tar file size (volume) limiting bigjeff UNIX for Dummies Questions & Answers 1 06-13-2005 09:54 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #8 (permalink)  
Old 01-06-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
What part did you have problems with?

The man pages are pretty complete references for setting this up.
  #9 (permalink)  
Old 01-06-2008
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 115
I'm new to "quota" that's why i'm having a hard time with it.
I looked in the man pages but i don't see a clear example on setting a maximum size for each user or for a group of users
  #10 (permalink)  
Old 01-06-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
It's pretty easy to do:

Example: the home directories are in a filesystem mount on /export
username is (any) one of the users.

Code:
touch /export/quotas
quotaon /export
get the block size
Code:
# df -g /export
/export            (/dev/dsk/c2t0d0s6 ):         8192 block size          1024 frag size  
1404412410 total blocks 1362535582 free blocks 1348491458 available       84482944 total files
84285845 free files      8388734 filesys id  
     ufs fstype       0x00000004 flag             255 filename length
Block size is 8k

I want to set a quota of 100MB so:
100 * 1024 * 1024 / 8192 = 12800 blocks

Code:
# edquota username
Set the quota for username ( in this case I am setting soft and hard limits the same )
Code:
fs /export blocks (soft = 12800, hard = 12800) inodes (soft = 0, hard = 0)
Save and quit.
Apply the same quota of the remaning users:

Code:
edquota -p username username2 username3 ...
Where username2 username3 ... is the rest of the list of users
  #11 (permalink)  
Old 01-06-2008
Katkota Katkota is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 115
Thanks a lot for your detailed answer.
So the only way to set a quotas for any set of users under one group is to do it one by one? it can't be done for all users at the same time?
  #12 (permalink)  
Old 01-06-2008
reborg's Avatar
reborg reborg is offline Forum Staff  
Administrator
  
 

Join Date: Mar 2005
Location: Ireland
Posts: 4,190
No, quotas are per-user.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0