added permissions script for cron job