Permissions mode change, and rewrite scripts to force sudo password entry