in reply to Re^4: Writing to a file atomically without renamingin thread Writing to a file atomically without renaming
I think you can't do it without becoming root in some way... like for example, using sudo.