How to run script as another user without password?
`su -c "Your command right here" -s /bin/sh username`
The above command is correct, but on Red Hat if selinux is enforcing it will not allow cron to execute scripts as another user. example; execl: couldn't exec /bin/shexecl: Permission denied
I had to install setroubleshoot and setools and run the following to allow it:
yum install setroubleshoot setoolssealert -a /var/log/audit/audit.loggrep crond /var/log/audit/audit.log | audit2allow -M mypolsemodule -i mypol.p