Quotas via NFS

Pietro Cerutti gahr at FreeBSD.org
Wed Aug 13 12:39:12 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

the handbook (§18.15.4 Quotas over NFS) doesn't seem to be particularly
clear to me.

Here is the situation:

* HOST_A -- web + db server
~  - /usr is mounted with quotas enabled
~    [ /dev/ad0s1e /usr ufs rw,userquota 2 2 ]
~  - /usr/local/www is the www root
~  - /usr/local/www is nullfs mounted on /www
~    [ /usr/local/www /www nullfs rw 0 0 ]
~  - /www is NFS exported
~    [ /www -alldirs -network=x.x.x.x -mask=y.y.y.y ]
~  - rquotad is enabled
~    [ root  inetd  892  5  udp4  *:49598  *:* ]

* HOST_B -- ssh/sftp access for a few owners of a subdomain
~  - each owner has its own www root NFS mounted inside its home
~    [ HOST_A:/www/hosts/<subdomain> on /usr/home/<owner>/www (nfs) ]

Now my problem is:

on HOST_A:
| sudo quota -u <owner>
Disk quotas for user <owner> (uid <owner_id>):
~     Filesystem   usage   quota   limit   grace   files   quota   limit
~  grace
~           /usr    3428  921600 1048576             737       0       0


on HOST_B:
| sudo quota -u <owner>
Disk quotas for user <owner> (uid <owner_id>): none

I think I am missing something on how the quota information is exported
via NFS. What I would like to achieve is to allow <owner>s to check
their own quotas on HOST_A, while they can only directly access HOST_B
via SSH.

Thanks

- --
Pietro Cerutti
gahr at FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEAREKAAYFAkii1dIACgkQwMJqmJVx946XQgCgv8NQQJd9tT/1+617D1TRk168
VZMAoIr4L6qP9aihH0UPUpofH7fmAAoy
=G5KV
-----END PGP SIGNATURE-----


More information about the freebsd-questions mailing list