From owner-freebsd-hackers@FreeBSD.ORG Tue May 30 16:16:35 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C831616AA75 for ; Tue, 30 May 2006 16:16:35 +0000 (UTC) (envelope-from phoemix@harmless.hu) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27B7E43D5D for ; Tue, 30 May 2006 16:16:35 +0000 (GMT) (envelope-from phoemix@harmless.hu) Received: from localhost (localhost [127.0.0.1]) by marvin (Postfix) with ESMTP id D8EEA20001CB; Tue, 30 May 2006 18:16:33 +0200 (CEST) Received: from marvin.harmless.hu ([127.0.0.1]) by localhost (marvin [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32504-07; Tue, 30 May 2006 18:16:32 +0200 (CEST) Received: by marvin (Postfix, from userid 1000) id 5F0BA20001C9; Tue, 30 May 2006 18:16:32 +0200 (CEST) Date: Tue, 30 May 2006 18:16:32 +0200 To: Eric Anderson Message-ID: <20060530161632.GA27889@marvin.harmless.hu> References: <447C6BCF.50908@centtech.com> <447C6EC9.6070806@madole.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <447C6EC9.6070806@madole.net> User-Agent: Mutt/1.5.9i From: phoemix@harmless.hu (Gergely CZUCZY) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at harmless.hu Cc: freebsd-hackers@freebsd.org Subject: Re: truncate tool - must be root? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 May 2006 16:16:37 -0000 --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--