limiting home directory size for a group


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers limiting home directory size for a group
# 8  
Old 01-06-2008
What part did you have problems with?

The man pages are pretty complete references for setting this up.
# 9  
Old 01-06-2008
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  
Old 01-06-2008
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  
Old 01-06-2008
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  
Old 01-06-2008
No, quotas are per-user.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Limiting size of rsync batch output

Anyone know if there's a way to limit the size of rsync batch output blob? I need each batch to fix on a 64GB USB key. Using syntax like: rsync -av --only-write-batch=/Volumes/usb/batch --stats /Users/dfbadmin/sandbox/ /Users/dfbadmin/archives/ (7 Replies)
Discussion started by: dfbills
7 Replies

2. Shell Programming and Scripting

How to delete some of the files in the directory, if the directory size limits the specified size

To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
Discussion started by: shaal89
0 Replies

3. Shell Programming and Scripting

Limiting output file size

Hi guys, I want to know if there is a way to check the current size of the file that I output "stuff" to. For example, if I run a command that outputs data (like another shell script or C program) and i do something like `./a.out &> tempfile.txt` within the script, I want to be constantly... (2 Replies)
Discussion started by: solaris7
2 Replies

4. UNIX for Dummies Questions & Answers

Limiting User mailbox size in /var/spool

How can one limit the size of user mailboxes in /var/spool/mail? (0 Replies)
Discussion started by: proactiveaditya
0 Replies

5. Red Hat

size of my home directory

Hi, I want to know the size of my home directory as user.How can i go for it? dexter (5 Replies)
Discussion started by: dextergenious
5 Replies

6. AIX

max size of a group in /etc/group

I have several AIX servers running 5.2. What is the default max size for a group in /etc/group? How do I change the default max size for a group to be unlimited (if possible)? Thanks (4 Replies)
Discussion started by: antalexi
4 Replies

7. UNIX for Dummies Questions & Answers

home directory & group in UNIX question

folks; I'm going to use LDAP on Solaris 10 to authenticate users, i have 3 questions, i'm hoping it can be possible: 1. when users login for the first time, Is there a way to auto create a home directory like "/home/"user_name" so we don't have to a create a home directory for every single... (3 Replies)
Discussion started by: Katkota
3 Replies

8. UNIX for Dummies Questions & Answers

limiting the size of syslog log files

I would like to limit the size of syslog log files. Is there a setting I can enter in syslog.conf that does this for me. Ideally I would like something along the lines of a circular buffer of N bytes. P.S. I'm a new user, and this site is awesome. I wish I found it earlier. Thanks, David (1 Reply)
Discussion started by: dmirza
1 Replies

9. UNIX for Dummies Questions & Answers

tar file size (volume) limiting

Hi I am trying to create tar files of a whole bunch of files and want to limit them to 50Mb each. I have tried using the -k option but cannot get it to work. Has anyone out there had success creating these? Cheers Ian (1 Reply)
Discussion started by: bigjeff
1 Replies
Login or Register to Ask a Question