Untitled Document
|
Enabling Quotas
|
FreeBSD 4.6-RELEASE
The Digitalpimp Collection
Ben Pfountz
November 4, 2002
|
Note: Be sure you have compiled support for quotas into your kernel
- add lines to /etc/rc.conf:
enable_quotas="YES"
check_quotas="NO"
| /dev/vinum/pincushon |
/mnt/data |
urs |
rw,userquota |
0 |
0 |
| /dev/ad4s1g |
/usr |
ufs |
rw,userquota |
0 |
0 |
- initialize quota database:
quotacheck -v /usr
quotacheck -v /mnt/data
- turn on quotas (This may not produce any output for filesystems that are
empty.)
quotaon -a
- test to see if quotas are enabled
quota -v
- assign quotas using: (one can check the fsize on an fs by using disklabel
<dev>)
edquota -u <user>
- allow quota information to be available to nfs users by adding to /etc/inetd.conf
| rquotad/1 |
dgram |
rpc/udp |
wait |
root |
/usr/libexec/rpc.quotad
rpc.quotad |
- Be sure inetd is enabled in /etc/rc.conf: inetd_enable="YES"
|