On 31 Dec 2005 15:17:56 -0800,
someone92@hotmail.com wrote:
>Hi, I've made a bash shell script that may need to be run as root
>(sometimes). The script will be run as cron job (and could be running
>for hours when launched). I would like to know if it can be a security
>issue to run a shell script as root? And what solution could I use if
>it needs root previleges.
>
>I know that a perl script would be more safe, but I wanted to make a
>shell script.
Huh? Why would perl be any safer than shell script?
I made a bash script to run as a cron job as root 'cos it must access
/var/log/messages, I feel secure ;-) I don't even mind sharing it:
http://bugsplatter.mine.nu/bash/junk/junkdata.html
Show us the script, perhaps we can tell you something? With no idea
what you are trying to achieve, what sort of information you after?
Grant.
And here 'tis already next year ;)