Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Aug 2008 14:38:43 +0200
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Quotas via NFS
Message-ID:  <48A2D5D3.2090209@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
-----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@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-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48A2D5D3.2090209>