Cron

Jim plug-discuss@lists.plug.phoenix.az.us
Fri, 20 Dec 2002 14:59:55 -0700


Thanks Bryce and Matt - I see what is happening now ;)

On Friday 20 December 2002 14:21, you wrote:
> Probably root.  Look at your /etc/crontab and there should be about 5
> lines with run-parts.  Here's mine:
>
> # run-parts
> 01 * * * * root nice -n 19 run-parts /etc/cron.hourly
> 02 4 * * * root nice -n 19 run-parts /etc/cron.daily
> 22 4 * * 0 root nice -n 19 run-parts /etc/cron.weekly
> 42 4 1 * * root nice -n 19 run-parts /etc/cron.monthly
>
> And you can see that run-parts is run as root.  You can make scripts run
> as a different user simply by putting the command in 'su USER -c
> "COMMAND" '.
>
> On Fri, 2002-12-20 at 14:08, Jim wrote:
> > I decided that one way to back up a database is to write a bash script to
> > run mysqldump.  I know that I can put the script in /etc/cron.weekly and
> > have it execute every week.  My question is what user will the cron job
> > run as?

----------------------------------------
Content-Type: application/pgp-signature; name="signature.asc"
Content-Transfer-Encoding: 7bit
Content-Description: This is a digitally signed message part
----------------------------------------

-- 
Jim

Freedom is worth protecting