Re: truncate tool - must be root?



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 :)


Eric

I can use truncate on files I own without a problem. Who owns the
files? A quick experiment indicates that even setting a file to mode
647 when owned by root:wheel doesn't allow it to be operated on by
anyone other than root when using truncate.

-- WXS
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"