On Tue, May 30, 2006 at 10:59:11AM -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 :)
> 
If you speak about truncate(1), it works here under non-root:

$ uname -sr
FreeBSD 7.0-CURRENT
$ dd if=/dev/zero of=foo bs=64k count=10
10+0 records in
10+0 records out
655360 bytes transferred in 0.002590 secs (253040511 bytes/sec)
$ id -u
1001
$ truncate -s 0 foo
$ ls -l foo
-rw-------  1 ru  ru  0 May 30 19:21 foo
$ 

-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer

Attachment: pgpc9Cj4qTgpw.pgp
Description: PGP signature

Reply via email to