Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] running user crontabs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1579
Location: Adelaide/Australia

PostPosted: Tue May 09, 2023 11:28 am    Post subject: [Solved] running user crontabs Reply with quote

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
View user's profile Send private message
szatox
Advocate
Advocate


Joined: 27 Aug 2013
Posts: 3150

PostPosted: Tue May 09, 2023 11:59 am    Post subject: Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30966
Location: here

PostPosted: Tue May 09, 2023 12:01 pm    Post subject: Reply with quote

Can help related wiki page?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
lyallp
Veteran
Veteran


Joined: 15 Jul 2004
Posts: 1579
Location: Adelaide/Australia

PostPosted: Tue May 09, 2023 12:05 pm    Post subject: [Solved] running user crontabs Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum