[GRLUG] cron job an password

Topher topher at codeventure.net
Tue Jun 11 10:07:39 EDT 2013


On Tue, 11 Jun 2013, Eric Beversluis wrote:

> How can I set a cron job to do mysqldump without hardcoding the mysql
> root password into the cron command? (It looks like anyone can read the
> various cron files.)

Actually, cron jobs can only be read by the people who create them.  So if 
you create a job as root, only root can see and edit it I believe.  It's 
annoyed me in the past that this is the case.  :)

Topher


More information about the grlug mailing list