best practice to run user scripts requiring root privileges as root cronjob. thus the user will not need to be logged in and root will "switch user su" running the script as user.