No matter what, you will need to have access to the root user account.
- you can add it to the root crontab, as suggested
- you can use sudo, as suggested
- you can use the setuid bit. The issue with the setuid bit is that it needs to be a compiled program. If it is compiled, you can "chmod 4755" and set the owner of the file to root, and it will run as root. If it is not compiled, you can write a tiny wrapper in C (or any other compiled programming language) that simply calls your script, and setuid on the wrapper, and make sure the wrapper is owned by root.
My advice? Use root crontab. It's what it's there for.
Also, there is no user entry in crontab as suggested by sth...the syntax is:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * command to be executed
If you want to enter something in crontab as root, just login to your root account, "crontab -e" and voila...root crontab.