History | View | Annotate | Download (4.3 kB)
Print dry run output to stdout
Create tempfile in the same dir as passwdfile
write_wrapper() uses a tempfile to write the new contents of thepasswdfile and then atomically renames / moves it to the original passwdfile. os.rename() won't work if the tempfile is not created on the same...
Change the auth file format
Switch to a 'passwd'/crypt-style format for the authentication file andprovide a tool to easily add / update / delete users from the file.