The makelev program in the golddig game from the FreeBSD ports collection allows local users to overwrite arbitrary files.
alexander siegel golddig 2.0