atom feed9 messages in org.freebsd.freebsd-hackerstruncate tool - must be root?
FromSent OnAttachments
Eric AndersonMay 30, 2006 8:59 am 
David S. MadoleMay 30, 2006 9:11 am 
Maxim KonovalovMay 30, 2006 9:12 am 
Gergely CZUCZYMay 30, 2006 9:16 am 
Ruslan ErmilovMay 30, 2006 9:25 am 
Wesley ShieldsMay 30, 2006 9:27 am 
Eric AndersonMay 30, 2006 9:31 am 
Fabian KeilMay 30, 2006 9:31 am 
Eric AndersonMay 30, 2006 9:32 am 
Subject:truncate tool - must be root?
From:David S. Madole (dav@madole.net)
Date:May 30, 2006 9:11:54 am
List:org.freebsd.freebsd-hackers

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$

Want to try again, giving any sort of interesting details you can, like version you tested on or a reproducible test case?

David