use tempfile for htpasswd and remove right away