From owner-freebsd-questions@FreeBSD.ORG Wed Aug 13 12:39:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 508771065672 for ; Wed, 13 Aug 2008 12:39:12 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from cpanel03.rubas-s03.net (cpanel03.rubas-s03.net [195.182.222.73]) by mx1.freebsd.org (Postfix) with ESMTP id E4C588FC15 for ; Wed, 13 Aug 2008 12:39:11 +0000 (UTC) (envelope-from gahr@FreeBSD.org) Received: from [213.142.183.219] (helo=gahrtop.localhost) by cpanel03.rubas-s03.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1KTFd8-0006pB-L4 for freebsd-questions@freebsd.org; Wed, 13 Aug 2008 14:39:10 +0200 Message-ID: <48A2D5D3.2090209@FreeBSD.org> Date: Wed, 13 Aug 2008 14:38:43 +0200 From: Pietro Cerutti Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.16 (X11/20080807) MIME-Version: 1.0 To: User Questions X-Enigmail-Version: 0.95.6 OpenPGP: id=9571F78E; url=http://gahr.ch/pgp/ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel03.rubas-s03.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Subject: Quotas via NFS X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 12:39:12 -0000 -----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/ on /usr/home//www (nfs) ] Now my problem is: on HOST_A: | sudo quota -u Disk quotas for user (uid ): ~ Filesystem usage quota limit grace files quota limit ~ grace ~ /usr 3428 921600 1048576 737 0 0 on HOST_B: | sudo quota -u Disk quotas for user (uid ): 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 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-----