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@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • 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: Pointers for understanding vfs/buffer/filesystem architecture
    ... > Eric Anderson wrote: ... >> in the Design and Implmentation of FreeBSD book, ... >> very very simple filesystem as a learning excercise. ... > also remembered some little article on writing an FS for freebsd, ...
    (freebsd-hackers)
  • Re: truncate tool - must be root?
    ... David S. Madole wrote: ... FreeBSD 5.4-RELEASE i386 ... $ echo "this is a test"> test ...
    (freebsd-hackers)
  • Re: Learn more about ld-elf and FreeBSD
    ... echo $LD_LIBRARY_PATH ... On 6/22/06, swygue wrote: ... > postgresql-7.4.2 database running on FreeBSD, ... And where can I find more information about ld-elf ...
    (freebsd-questions)
  • Regular expressions
    ... echo "Type in a number" ... The above example doesn't work on my freebsd box. ... Is there anyone who has some advice about how to get regular expressions to work in FreeBSD shell script? ...
    (freebsd-questions)