From owner-freebsd-current Wed Mar 17 3:56:39 1999 Delivered-To: freebsd-current@freebsd.org Received: from xkis.kis.ru (xkis.kis.ru [195.98.32.200]) by hub.freebsd.org (Postfix) with ESMTP id F259E1535D; Wed, 17 Mar 1999 03:56:34 -0800 (PST) (envelope-from dv@dv.ru) Received: from localhost (dv@localhost) by xkis.kis.ru (8.9.0/8.9.0) with ESMTP id OAA21212; Wed, 17 Mar 1999 14:56:07 +0300 (MSK) Date: Wed, 17 Mar 1999 14:56:07 +0300 (MSK) From: Dmitry Valdov X-Sender: dv@xkis.kis.ru To: Fernando Schapachnik Cc: freebsd-current@FreeBSD.ORG, freebsd-security@FreeBSD.ORG Subject: Re: disk quota overriding In-Reply-To: <199903171150.IAA23361@ns1.sminter.com.ar> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=KOI8-R Content-Transfer-Encoding: 8BIT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 17 Mar 1999, Fernando Schapachnik wrote: > Date: Wed, 17 Mar 1999 08:50:50 -0300 (GMT) > From: Fernando Schapachnik > To: Dmitry Valdov > Cc: freebsd-current@FreeBSD.ORG, freebsd-security@FreeBSD.ORG > Subject: Re: disk quota overriding > > Are you aware that, due to nature of hardlinks the only extra space is > same that for an empty file? Due to this, how many empty files do you > think it takes to eat the whole space of / ? No. Many empty files can be controlled by INODE QUOTAS. Hard links can't. But I can create as many hard links as I need to eat up the whole space of /... > > I'm I loosing something? > > Regards. > > En un mensaje anterior, Dmitry Valdov escribió: > > Hi! > > > > There is a way to overflow / filesystem even is quota is enabled. > > > > Just make many hard links (for example /bin/sh) to /tmp/ > > > > for ($q=0;$q<100000;$q++){ > > system ("ln /bin/sh /tmp/ln$q"); > > } > > > > Because /tmp directory usually owned by root that why quotas has no effect. > > *Directory* size of /tmp can be grown up to available space on / filesystem. > > > > Any way to fix it? > > > Fernando P. Schapachnik > Administracion de la red > VIA Net Works Argentina SA > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message