truncate works, so do filemodes
fixed chmod behavior