On 3/01/2009, at 7:04 PM, Phill Coxon wrote:

On Sat, 2009-01-03 at 15:48 +1300, Jasper Bryant-Greene wrote:
You can't setuid root scripts, you would need to setuid the
interpreter, or wrap it in a small C program. That seems like overkill
for this.

Why not just run the command in /etc/rc.local which is executed during
boot, as root?

Perfect - thanks!

No problem. I should point out that the rc.local file varies by distribution:

On Debian and Debian-based distributions, it's /etc/rc.local

On Gentoo, it's /etc/conf.d/local.start (or /etc/conf.d/local for really recent versions of baselayout)

Not sure about other distributions, I imagine several use /etc/ rc.local though.

Cheers
Jasper

Reply via email to