Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Mar 1999 08:50:50 -0300 (GMT)
From:      Fernando Schapachnik <fpscha@ns1.sminter.com.ar>
To:        dv@dv.ru (Dmitry Valdov)
Cc:        freebsd-current@FreeBSD.ORG, freebsd-security@FreeBSD.ORG
Subject:   Re: disk quota overriding
Message-ID:  <199903171150.IAA23361@ns1.sminter.com.ar>
In-Reply-To: <Pine.BSF.3.95q.990317143707.15120A-100000@xkis.kis.ru> from Dmitry Valdov at "Mar 17, 99 02:42:46 pm"

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

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-security" in the body of the message




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