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:Maxim Konovalov (max@macomnet.ru)
Date:May 30, 2006 9:12:26 am
List:org.freebsd.freebsd-hackers

On Tue, 30 May 2006, 10:59-0500, 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 :)

Works for me:

$ truncate -s 100g 100g $ ls -l 100g -rw-r--r-- 1 maxim maxim 107374182400 May 30 20:11 100g $ id uid=1001(maxim) gid=1001(maxim) groups=1001(maxim), 0(wheel), 5(operator), 68(dialer)