truncate tool - must be root?
Gergely CZUCZY
phoemix at harmless.hu
Tue May 30 09:16:37 PDT 2006
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,
> >then the man page should probably mention it. If not, then it's
> >broken :)
>
> That's a pretty weak attempt at a bug report, and a wrong one, too:
>
> $ uname -m -r -s
> FreeBSD 5.4-RELEASE i386
> $ id
> uid=2028(madole) gid=2000(users) groups=2000(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 at harmless.hu
PGP: http://phoemix.harmless.hu/phoemix.pgp
Weenies test. Geniuses solve problems that arise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20060530/84e17f8b/attachment.pgp
More information about the freebsd-hackers
mailing list