Anacron for non-root users?
Adam Funk
a24061 at yahoo.com
Tue Mar 6 21:04:00 UTC 2007
On 2007-03-06, Jeffrey F. Bloss wrote:
> Is there anything to prevent you from using existing anacron tools,
> letting root "start" the job, but using 'su' to run it as a user?
>
> In your /etc/cron.whatever scripts it might look something like this...
Actually, I was just thinking of putting a short home-made script in
/etc/cron.daily to do something like
sudo -u adam run-parts --report /home/adam/anacron.daily
and putting in ~/anacron.daily the stuff I want to run as myself.
> The only disadvantage is that you need root privileges to set it up of
> course. So if you were looking for something users can meddle with keep
> looking. ;) Or....
This is for a (more or less) single-user system, and at this point I'm
really just thinking out loud about the possibility of running daily
jobs under my normal userid so I could turn the computer off overnight
sometimes.
More information about the ubuntu-users
mailing list