View previous topic :: View next topic |
Author |
Message |
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1579 Location: Adelaide/Australia
|
Posted: Tue May 09, 2023 11:28 am Post subject: [Solved] running user crontabs |
|
|
Silly question, I know.
I have a user crontab
Code: | */1 * * * * /home/lyall/Scripts/DownloadPowerGatewayInfo.py
59 23 * * * /home/lyall/Scripts/BackupCloudKeepass.sh
|
configured under my non-root user, lyall.
My system level /etc/cron.{hourly|daily|monthly} all work fine.
My personal crontab does not run.
my /etc/crontab is empty.
my /etc/cron.d has 0hourly and dailyjobs, which, I assume have been working because my /etc/cron.{hourly|daily|monthly} have been working.
I have cronie installed with the anacron use flag set.
Do I need to put in /etc/crontab Code: |
* * * * * lyall [ -r /var/spool/cron/crontabs/lyall ] && crontab /var/spool/cron/crontabs/lyall
|
to run my personal crontab?
I would have thought there was a more 'automatic' way of running user crontabs... _________________ ...Lyall
Last edited by lyallp on Tue May 09, 2023 12:09 pm; edited 1 time in total |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3150
|
Posted: Tue May 09, 2023 11:59 am Post subject: |
|
|
I think your user must be in cron group (or crontab group).
At lest it used to be this way, with multiple permission systems in place things got a bit fuzzy. I've seen issues with cron not running on user account without password set too. Like in an ssh key only login account. Unlikely scenario on a personal machine, but wasn't uncommon in a managed (company) environment. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30966 Location: here
|
Posted: Tue May 09, 2023 12:01 pm Post subject: |
|
|
Can help related wiki page? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1579 Location: Adelaide/Australia
|
Posted: Tue May 09, 2023 12:05 pm Post subject: [Solved] running user crontabs |
|
|
Thanks for the quick reply!
I did not have my user in the /etc/cron.allow file....
I also did not have group 'crontabs' configured in my user. _________________ ...Lyall |
|
Back to top |
|
|
|