create .history with mode 666 not 777 (should use umask, too, but