Subject: | |
From: | |
Reply To: | |
Date: | Wed, 18 Apr 2001 12:41:57 +0300 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hi Jurjen,
It's very nice to have a HP9000 list, especially when most of the users are
from lovely HP3000-L!
Let's come to your question..
First you must create a binary file named "quotas" in your root directory
using "cpset" command.
Don't forget to enter the parameters for [owner's, group's and other's]
privileges , owner of the file and the group of the file .
Let's say you want to create an empty binary file under / (root)
directory and the owner
of the file will be "root", group of the file will be "oracle". Also only
root will have the read, write privileges. group and others will just read
the file (it's in binary rw0 r00 r00, in other word, 110, 100, 100,
decimal 644).
#cpset /dev/null / home 644 root oracle
Then limit users disk quota using the "edquota" command. You must supply
users name as parameter:
#edquota operator10
This will open vi (if it's your default editor in Unix environment) and
let you enter some ascii chars and then translates them into binary to keep
in /quotas file.
An example line from quotas:
fs /home/user_home/ blocks (soft = 4000, hard = 8000) inodes (soft = 120,
hard = 240)
AFAIK, you can just specify the blocks. Anyway, you could calculate how
many blocks takes how much disk spaces..
And also you can copy one users parameters to another one. See "edquota"
manuals to get more info by typing:
#man edquota
Hope this will help.
Kemal.
Jurjen Heeck <[log in to unmask]>@RAVEN.UTC.EDU> on 18/04/2001
11:25:01 AM
Please respond to Jurjen Heeck <[log in to unmask]>
Sent by: HP9000 Computer Systems discussion list <[log in to unmask]>
To: [log in to unmask]
cc:
Subject: [HP9000-L] User space limits
Hi!,
Congrats with the new list. I hope it will become as enjoyable and
educational as the
HP-3000 list and its archives.
Does anyone know how to restrict disk space per user on an HP ux machine ?
I can't
find it anywhere in SAM.
I'm running UX 11 on a d220.
TIA
Jurjen Heeck
System admin
Compass Group Nederland BV
|
|
|