Date: Tue, 30 May 2006 18:16:32 +0200 From: phoemix@harmless.hu (Gergely CZUCZY) To: Eric Anderson <anderson@centtech.com> Cc: freebsd-hackers@freebsd.org Subject: Re: truncate tool - must be root? Message-ID: <20060530161632.GA27889@marvin.harmless.hu> In-Reply-To: <447C6EC9.6070806@madole.net> References: <447C6BCF.50908@centtech.com> <447C6EC9.6070806@madole.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 30, 2006 at 12:11:53PM -0400, David S. Madole wrote: > Eric Anderson wrote: > >Is it expected that truncate(8) must be used by a superuser? If so,=20 > >then the man page should probably mention it. If not, then it's=20 > >broken :) >=20 > That's a pretty weak attempt at a bug report, and a wrong one, too: >=20 > $ uname -m -r -s > FreeBSD 5.4-RELEASE i386 > $ id > uid=3D2028(madole) gid=3D2000(users) groups=3D2000(users) > $ echo "this is a test" > test > $ ls -l test > -rw-r----- 1 madole httpd 15 May 30 12:06 test > $ truncate -s 7 test > $ ls -l test > -rw-r----- 1 madole httpd 7 May 30 12:06 test > $ cat test > this is$ also works for me on 6-RELEASE-p7 Bye, Gergely Czuczy mailto: gergely.czuczy@harmless.hu PGP: http://phoemix.harmless.hu/phoemix.pgp Weenies test. Geniuses solve problems that arise. --MGYHOYXEY6WxJCY8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEfG/gbBsEN0U7BV0RAkgJAJ9bmeji3+Pu5H9/mWiFxTXZm9RV3wCfSWrK Wks2ntFleMkqu0CLsqqd+Zs= =FcYM -----END PGP SIGNATURE----- --MGYHOYXEY6WxJCY8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060530161632.GA27889>