Rewrite to run script without root.