Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 May 2006 20:12:26 +0400 (MSD)
From:      Maxim Konovalov <maxim@macomnet.ru>
To:        Eric Anderson <anderson@centtech.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: truncate tool - must be root?
Message-ID:  <20060530201146.H60845@mp2.macomnet.net>
In-Reply-To: <447C6BCF.50908@centtech.com>
References:  <447C6BCF.50908@centtech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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)

-- 
Maxim Konovalov



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060530201146.H60845>