Running script from rc.d as local user

Lowell Gilbert freebsd-questions-local at
Fri Mar 9 19:44:48 UTC 2007

Lowell Gilbert <freebsd-questions-local at> writes:

> Gerard Seibert <gerard at> writes:
>> On Thu, 08 Mar 2007 08:52:20 -0600
>> Derek Ragona <derek at> wrote:
>>> You should add a line:
>>> /usr/bin/su [to your username]
>> OK, I'll try that.
> A way to do this without needing special permissions to
> touch system files is to use cron; it has an "@reboot"
> time specification for this purpose.

The original message finally arrived in my mailbox, so I see that
you've already tried cron and didn't know how to set environmental
variables that way.  The answers are simple; set them in the crontab
(usually on the command line you're executing), or write a wrapper
script and call that from your crontab.

More information about the freebsd-questions mailing list