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 Anderson Sr. Systems Administrator Centaur Technology
Anything that works is better than anything that doesn't.
------------------------------------------------------------------------
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: away
    ... Please, don't leave us, David! ... I have made lots of work in FreeBSD threading work, this includes kernel ... made AIO MP-safe, these are all work-in-progress, but I am sorry, the attack made to me is very harmful, I feel I can not recover from such disaster, working on FreeBSD is no longer fun. ...
    (freebsd-stable)
  • mfs_root booting problems
    ... I've read several online guides none of which explain using a root mfs to accomplish this task. ... It loads the kernel, loads the mfs root and then the machine immediately reboots. ... I was hoping that someone has a documented method for initializing a FreeBSD system via PXE and without the use of NFS for the root filesystem. ... echo Loading Your Kernel Fool!!! ...
    (freebsd-questions)
  • Re: Mono XSP & mod_mono support on FreeBSD
    ... Currently XSP does not run on FreeBSD. ... There is a brief post here about the reasons why from David Xu: ...
    (freebsd-hackers)
  • Re: Bug in #! processing
    ... "David G. Lawrence" writes: ... UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND ... all platforms besides FreeBSD. ...
    (freebsd-current)
  • Re: Bug in #! processing
    ... "David G. Lawrence" writes: ... UID PID PPID CPU PRI NI VSZ RSS MWCHAN STAT TT TIME COMMAND ... all platforms besides FreeBSD. ...
    (freebsd-current)