Re: truncate tool - must be root?
Fabian Keil wrote: Eric Anderson <[EMAIL PROTECTED]> 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 :) What exactly is truncate(8)? On FreeBSD 6.1-STABLE I only have truncate(1) and it doesn't show any problems. Fabian Yea, it's just a bad message from me altogether.. Might as well just file it under 'Spam'. Sorry for the really bad report of a non-existent problem (except the one between my eyes and my brain). Eric -- Eric AndersonSr. Systems AdministratorCentaur Technology Anything that works is better than anything that doesn't. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: truncate tool - must be root?
Eric Anderson <[EMAIL PROTECTED]> 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 :) What exactly is truncate(8)? On FreeBSD 6.1-STABLE I only have truncate(1) and it doesn't show any problems. Fabian -- http://www.fabiankeil.de/ signature.asc Description: PGP signature
Re: truncate tool - must be root?
David S. Madole wrote: 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 *sigh* My mistake - I'm not even going to mention the simple nature of my problem, because I'd embarrass myself too much. :) You're right though, it was a bad report, and I should be smacked with a silly stick.. Eric -- Eric AndersonSr. Systems AdministratorCentaur Technology Anything that works is better than anything that doesn't. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
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@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
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 :) > 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 pgpc9Cj4qTgpw.pgp Description: PGP signature
Re: truncate tool - must be root?
On Tue, May 30, 2006 at 12:11:53PM -0400, David S. Madole wrote: > 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$ also works for me on 6-RELEASE-p7 Bye, Gergely Czuczy mailto: [EMAIL PROTECTED] PGP: http://phoemix.harmless.hu/phoemix.pgp Weenies test. Geniuses solve problems that arise. signature.asc Description: Digital signature
Re: truncate tool - must be root?
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: truncate tool - must be root?
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 ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"
truncate tool - must be root?
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 -- Eric AndersonSr. Systems AdministratorCentaur Technology Anything that works is better than anything that doesn't. ___ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "[EMAIL PROTECTED]"