Setting permissions and running a cron program to check for errors/debugging

You should be prompted for a password after you enter the sudo command. I think that if you have already provided the password you will not be prompted a second time.