Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-20 Thread Bernard Bass
L'utilisateur gestionnaire est créé. Identifier l'utilisateur qui fait tourner le service cron : ps -Af | grep cron root 890   1  0 20:21 ?    00:00:00 /usr/sbin/cron -f -P sudo systemctl stop cron cd /usr/sbin/ ls -la -rwxr-xr-x  1 root root 51792 mars  23  2022 cron

Re: Re : Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-20 Thread Christophe Maquaire
Le mardi 20 février 2024 à 11:19 +0100, Christophe Maquaire a écrit : > > > Y'a même mieux ou pire, c'est selon: > > https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html Je continue le prosélytisme: In French et illustré par

Re: Re : Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-20 Thread Christophe Maquaire
Le mardi 20 février 2024 à 10:00 +0100, NoSpam a écrit : > Bonjour > > Le 20/02/2024 à 05:54, k6dedi...@free.fr a écrit : > > Bonjour, > > Je découvre ce fil de discussion. > > Je ne comprends pas que l'on puisse encore travailler avec CRON. > > Alors que ANACRON

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-20 Thread Bernard Bass
La question initiale : Comment remplacer l'utilisateur root pour utiliser le service cron ? Devrait plutôt être : *Comment lancer le service cron/crontab avec l'utilisateur gestionnaire (root) ?* J'ai créé l'utilisateur gestionnaire de la sorte : Créer un utilisateur gestionnaire pour

Re: Re : Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-20 Thread NoSpam
Bonjour Le 20/02/2024 à 05:54, k6dedi...@free.fr a écrit : Bonjour, Je découvre ce fil de discussion. Je ne comprends pas que l'on puisse encore travailler avec CRON. Alors que ANACRON est indépendant de la période de fonctionnement du PC. Si on se place d'un point de vue poste de travail. Pour

Re : Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-19 Thread k6dedijon
Bonjour, Je découvre ce fil de discussion. Je ne comprends pas que l'on puisse encore travailler avec CRON. Alors que ANACRON est indépendant de la période de fonctionnement du PC. Peut-etre que vous pourriez trouver une piste de solution dans l'article de Léa Linux espliquant les fonctionalités

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Pierre Malard
e normalement. > > Je ne sais toujours pas créer un utilisateur gestionnaire capable de prendre > le rôle de root, pour faire fonctionner l'ensemble des services cron, sans > passer par des manipulations complexes. > > Merci d'avoir répondu. > -- Pie

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Bernard Bass
naire capable de prendre le rôle de root, pour faire fonctionner l'ensemble des services cron, sans passer par des manipulations complexes. Merci d'avoir répondu.

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Bernard Bass
not available. 5) On ne peut donc pas accéder à root directement. Le système cron avec la crontab -e root continue de fonctionner. Le user root semble faire son travail sans erreur. J'aurais préféré créer un utilisateur gestionnaire pour remplacer les actions de l'utilisateur root, capable de

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Bernard Bass
possibité d'administrer cron.' */Supprimer le mot de passe de l'utilisateur root pour ne pas conserver le hash du mot de passe en mémoire./* Désactiver l'utilisateur root à partir du shell : Le moyen le plus simple de désactiver la connexion de l'utilisateur root est de changer son shell du

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Pierre Malard
du mot > >> de passe root en mémoire. > >> sudo passwd -d root > > > > > #### > >> Il faudrait alors réactiver l'utilisateur root , pour qu'il puisse gérer > >> les tâches cron du système ( cron.daily ... ) : >

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Bernard Bass
alors réactiver l'utilisateur root , pour qu'il puisse gérer les tâches cron du système ( cron.daily ... ) : >> sudo passwd --unlock root* *>> Affiche : >> passwd : déverrouiller le mot de passe créerait un compte sans mot de passe.* >> Vous devriez définir un mot de passe

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Basile Starynkevitch
On 2/18/24 09:26, Pierre Malard wrote: Bonjour, Même question, tout ça sert-il à quoi que ce soit ? Même si on interdit la connexion directe sous « root », ce qui peut se concevoir, il n’empêche que certaines commande doivent être lancées avec ces droits. su coup, pour modifier le crontab

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-18 Thread Pierre Malard
pour lancer la commande souhaitée… mais il faut avoir les droits « root » pour créer cette entrée ;-) https://doc.ubuntu-fr.org/cron > Le 18 févr. 2024 à 00:09, Sébastien Dinot a écrit : > > Bernard Bass a écrit : >> Voilà ma question : Comment remplacer l'utilisateur root pour

Re: Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-17 Thread Sébastien Dinot
Bernard Bass a écrit : > Voilà ma question : Comment remplacer l'utilisateur root pour utiliser > le service cron ? Puis-je savoir à quoi sert de désactiver le compte root si c'est pour donner les pleins pouvoirs à un autre compte, en le dispensant de saisir son mot de passe lorsqu'il util

Comment remplacer l'utilisateur root pour utiliser le service cron ?

2024-02-17 Thread Bernard Bass
Bonjour, Voilà ma question : Comment remplacer l'utilisateur root pour utiliser le service cron

Re: cronitor.io for monitoring cron jobs

2023-09-12 Thread Tom Browder
On Tue, Sep 12, 2023 at 00:54 Kushal Kumaran wrote: > On Mon, Sep 11 2023 at 05:59:37 AM, Tom Browder > wrote: > > Anyone using that system? It looks interesting to me. > > > I prefer healthchecks.io, mainly because cron job monitoring was all I > was looking for,

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Kushal Kumaran
On Mon, Sep 11 2023 at 05:59:37 AM, Tom Browder wrote: > Anyone using that system? It looks interesting to me. > I prefer healthchecks.io, mainly because cron job monitoring was all I was looking for, and the software is open source. There is a comparison with cronitor at

[outrageously off-topic] All those Thomas [was: cronitor.io for monitoring cron jobs]

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:08:04PM +, Andrew M.A. Cater wrote: > On Mon, Sep 11, 2023 at 06:49:00PM +0200, to...@tuxteam.de wrote: > > On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > > > Hi, > > > > > > to...@tuxteam.de wrote: > > > > and we're all twins [1] ;-) > > > > [1]

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Andrew M.A. Cater
On Mon, Sep 11, 2023 at 06:49:00PM +0200, to...@tuxteam.de wrote: > On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > > Hi, > > > > to...@tuxteam.de wrote: > > > and we're all twins [1] ;-) > > > [1] https://en.wikipedia.org/wiki/Thomas_(name) > > > > But paradoxly less than half

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:31:45PM +0200, Thomas Schmitt wrote: > Hi, > > to...@tuxteam.de wrote: > > and we're all twins [1] ;-) > > [1] https://en.wikipedia.org/wiki/Thomas_(name) > > But paradoxly less than half of all twins bear this very cool name. Which is a pity, ain't it ;-) Imagine

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Thomas Schmitt
Hi, to...@tuxteam.de wrote: > and we're all twins [1] ;-) > [1] https://en.wikipedia.org/wiki/Thomas_(name) But paradoxly less than half of all twins bear this very cool name. Have a nice day :) Thomas

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 07:46:35AM -0500, Tom Browder wrote: [...] > > "Apt search monitor" and subsequent filtering with "web" yields half > > a dozen other interesting hits. > > > Thanks, Tomas, I was not savy enough to think of that! Glad to help :) > P.S. We share a good, Biblical name,

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread Tom Browder
On Mon, Sep 11, 2023 at 07:25 wrote: > On Mon, Sep 11, 2023 at 06:46:43AM -0500, Tom Browder wrote: > > On Mon, Sep 11, 2023 at 06:22 wrote: > > > > > On Mon, Sep 11, 2023 at 05:59:37AM -0500, Tom Browder wrote: > > > > Anyone using that system? It looks interesting to me. > > > > > > Gah. My

Re: cronitor.io for monitoring cron jobs

2023-09-11 Thread tomas
On Mon, Sep 11, 2023 at 05:59:37AM -0500, Tom Browder wrote: > Anyone using that system? It looks interesting to me. Gah. My eyes hurt now after having looked at the web site. Besides, it looks a bit like a bait-and-switch SaSS. No, I wouldn't use it. Cheers -- t signature.asc Description:

cronitor.io for monitoring cron jobs

2023-09-11 Thread Tom Browder
Anyone using that system? It looks interesting to me. -Tom

Re: Bookworm VPS image and cron

2023-08-25 Thread Steve Sobol
to me like not a bug, since a minimal debootstrap (debootstrap --variant=minbase bookworm target-dir) of Debian 12 does not include the "cron" package either. It's just a change. Nothing in the base system needs cron any more. Might not be a bug. Regardless, that was thei

Re: Bookworm VPS image and cron

2023-08-25 Thread Andy Smith
a minimal debootstrap (debootstrap --variant=minbase bookworm target-dir) of Debian 12 does not include the "cron" package either. It's just a change. Nothing in the base system needs cron any more. I'd regard it as more of a bug if cron got installed without anything that depended upo

Re: Bookworm VPS image and cron

2023-08-24 Thread Steve Sobol
Debian bullseye all shipped with cron properly installed. Come to think of it... I just checked a local bookworm VM I'm running at home, and it has cron installed, too. I'll open a ticket. Response from the provider: [ Hi Steve, Thanks for reaching out to DigitalOcean. I understand you r

Re: Bookworm VPS image and cron

2023-08-06 Thread Geert Stappers
On Sat, Aug 05, 2023 at 02:00:42PM -0700, Steve Sobol wrote: > On 2023-08-05 13:23, Michael Kjörling wrote: > > On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): > > > > But cron isn't installed. > > > > > > I just install a new Bookworm VM a

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
diting root's > > > crontab. > > > > > > But cron isn't installed. > > > > Seems unlikely. There are system cron jobs that are not yet > > converted to systemd timers. A bookworm install I did just yesterday > > has cron jobs in /etc/cron.d/ that require the &qu

Re: Bookworm - cron?

2023-08-05 Thread Steve Sobol
On 2023-08-05 13:16, Andy Smith wrote: Hello, On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed. Seems unlikely. There are system cron jobs that are not yet converted

Re: Bookworm - cron?

2023-08-05 Thread Steve Sobol
On 2023-08-05 13:23, Michael Kjörling wrote: On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): But cron isn't installed. I just install a new Bookworm VM and 'cron' is present! :) Ditto. That must be some customization your VPS provider has made, if the installation didn't

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
On Sat, Aug 05, 2023 at 08:16:57PM +, Andy Smith wrote: > Hello, > > On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > > But cron isn't installed. > > Seems unlikely. There are system cron jobs that are not yet > converted to systemd timers. A boo

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
ing company would put in the effort to > convert the system cron jobs to systemd timers though Having had a look at the system cron jobs that end up installed by default, every single one of them does have a systemd timer that executes instead of them, so I think I must take it back and say that it

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
Hello, On Sat, Aug 05, 2023 at 08:23:19PM +, Michael Kjörling wrote: > On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): > >> But cron isn't installed. > > > > I just install a new Bookworm VM and 'cron' is present! :) > > Ditto. That must

Re: Bookworm - cron?

2023-08-05 Thread Greg Wooledge
On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > My VPS provider [...] > But cron isn't installed. > > What am I expected to use instead? (I assume that I *could* install cron, > but there must be a reason it's not installed by default anymore, right?) Just

Re: Bookworm - cron?

2023-08-05 Thread Michael Kjörling
On 5 Aug 2023 22:13 +0200, from johndoe65...@mail.com (john doe): >> But cron isn't installed. > > I just install a new Bookworm VM and 'cron' is present! :) Ditto. That must be some customization your VPS provider has made, if the installation didn't somehow fail. I did an instal

Re: Bookworm - cron?

2023-08-05 Thread Andy Smith
Hello, On Sat, Aug 05, 2023 at 12:53:08PM -0700, Steve Sobol wrote: > Part of my standard procedure for setting up new VMs involves editing root's > crontab. > > But cron isn't installed. Seems unlikely. There are system cron jobs that are not yet converted to systemd timers. A book

Re: Bookworm - cron?

2023-08-05 Thread john doe
On 8/5/23 21:53, Steve Sobol wrote: Crazy question: My VPS provider just started offering bookworm images. So when I set up a new server yesterday, I installed bookworm. Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed. What am I

Bookworm - cron?

2023-08-05 Thread Steve Sobol
Crazy question: My VPS provider just started offering bookworm images. So when I set up a new server yesterday, I installed bookworm. Part of my standard procedure for setting up new VMs involves editing root's crontab. But cron isn't installed. What am I expected to use instead? (I

Re: which dput/method to chose for automatic uploads via cron?

2023-08-01 Thread Michael Kjörling
On 1 Aug 2023 10:59 +0200, from harald.dun...@aixigo.com (Harald Dunkel): > - dput-ng/sftpworks fine on the command line, but dies with > "Failed to auth" in cron scripts. I can't help you choose a dput method, but different results between running on an int

which dput/method to chose for automatic uploads via cron?

2023-08-01 Thread Harald Dunkel
ig_options appear to be ignored - dput/sftp doesn't exist - dput-ng/scp ignores ssh_config_options - dput-ng/sftp works fine on the command line, but dies with "Failed to auth" in cron scripts. - dput-ng/rsync doesn't exist I have to use a dedicated key p

Re: Apropos el cron d'usuari ...

2023-02-17 Thread Antoni Villalonga
On Thu, Feb 16, 2023 at 09:33:35PM +0100, Lluís Gras wrote: > Missatge de Alex Muntada del dia dl., 13 de febr. 2023 a > les 21:43: > > > Hola, Lluís: > > > > > Entenc que es un tema de l'entorn del cron de l'usuari, però > > > malgrat potinejar a

Re: Apropos el cron d'usuari ...

2023-02-13 Thread Alex Muntada
Hola, Lluís: > Entenc que es un tema de l'entorn del cron de l'usuari, però > malgrat potinejar al respecte no he trobat com apedaçar-ho. Compte perquè, si no vaig errat, les ordres que s'executen des del cron no veuen l'entorn habitual de l'usuari, és a dir, que el shell que s'executa no

Apropos el cron d'usuari ...

2023-02-13 Thread Lluís Gras
to directament des d'un terminal. Entenc que es un tema de l'entorn del cron de l'usuari, però malgrat potinejar al respecte no he trobat com apedaçar-ho. Així que si algú de vosaltres em pot orientar una mica li ho agrairé.

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Teemu Likonen
* 2022-09-18 09:00:49-0400, Greg Wooledge wrote: > In normal usage, scripts should always be calling mailx or an > equivalent program which is *designed* to create the e-mail headers > correctly. This is especially true if you're sending attachments. > Writing the MIME headers and attachment

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Greg Wooledge
On Sun, Sep 18, 2022 at 09:27:46AM +0200, Yvan Masson wrote: > So the `mailutils` package with `mail` command is optional: `sendmail` could > be used directly in scripts (but it might be a bit less practical to use, > see for example https://www.computerhope.com/unix/usendmai.htm#examples). If

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-18 Thread Yvan Masson
Le 18/09/2022 à 00:32, Greg Wooledge a écrit : On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: My question is: how cron daemon and mail command know that they should contact openSMTPd, and how? Do they try by default on localhost:25 or /run/smtpd.sock? I could not find any clue

Re: How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Greg Wooledge
On Sat, Sep 17, 2022 at 11:11:51PM +0200, Yvan Masson wrote: > My question is: how cron daemon and mail command know that they should > contact openSMTPd, and how? Do they try by default on localhost:25 or > /run/smtpd.sock? I could not find any clue, nor in cron manpages nor in > mail

How does mailutils "mail" command or cron contact local MTA?

2022-09-17 Thread Yvan Masson
/aliases`. This allows me to send email from my servers, either when cron runs a task, or when I run `echo my_content | mail -s subject root` from scripts. My question is: how cron daemon and mail command know that they should contact openSMTPd, and how? Do they try by default on localhost:25

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-22 Thread Roger Price
On Thu, 21 Jul 2022, Dekks Herton wrote: Roger Price writes: Command cat /sys/devices/cpu/caps/pmu_name reports: westmere I should have said also that command inxi -Fix reports MCP arch: Nehalem, which is specified in more detail by the reference E5645 at

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-21 Thread Dekks Herton
Roger Price writes: > On Mon, 18 Jul 2022, Dekks Herton wrote: >> What kernel is 11 running? are you using a Haswell or Broadwell CPU? > > Command inxi reports: > System:Host: titan Kernel: 5.10.0-15-amd64 x86_64 bits: 64 > Desktop: Xfce 4.16.0 Distro: Debian GNU/Linux 11

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-18 Thread Roger Price
On Mon, 18 Jul 2022, Dekks Herton wrote: What kernel is 11 running? are you using a Haswell or Broadwell CPU? Command inxi reports: System:Host: titan Kernel: 5.10.0-15-amd64 x86_64 bits: 64 Desktop: Xfce 4.16.0 Distro: Debian GNU/Linux 11 (bullseye) Machine: Type: Desktop

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-18 Thread Dekks Herton
f this list > have sound coming from a Debian 11 cron job? If so, how is it done? > > Roger What kernel is 11 running? are you using a Haswell or Broadwell CPU? Regards.

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound [Solved]

2022-07-18 Thread Roger Price
, but by installing it I cleaned up the default pulse mess left over by previous operating system installations (My user space ~rprice has been running since Sept 1994). To my surprise, when cron calls the Bash script bark.sh, command "pactl list short sinks" reports Connection failure:

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Roger Price
On Sun, 17 Jul 2022, Lee wrote: On 7/17/22, The Wanderer wrote: I don't use cron to play sounds, so I can't speak to this directly, but... While this may turn out in the end to be pure FUD, when I hear about things which work properly when run by hand but not when run automatically

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Dan Ritter
t; ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave > /usr/bin/play FAIL sox: Sorry, there is no default audio device configured I'm going to guess that: - you normally have pulseaudio running - the commands work when systemd has set up a pulseaudio daemon for you - the com

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Lee
On 7/17/22, The Wanderer wrote: > On 2022-07-16 at 04:47, Roger Price wrote: > >> People occasionally have a cron job emit some sound each hour. On my >> Debian 9 >> machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a >> >> script bark.

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread The Wanderer
On 2022-07-16 at 04:47, Roger Price wrote: > People occasionally have a cron job emit some sound each hour. On my Debian > 9 > machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a > script bark.sh which does the barking. Typically > > 0,1 0,12 * *

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-17 Thread Lee
On 7/16/22, Roger Price wrote: > On Sat, 16 Jul 2022, Lee wrote: > >> I don't have play, so I tried aplay .. and it works, even if I'm >> logged out, even if someone else is logged in. >> >> ## run the script every minute >> >> $ crontab -l | tail -3 >> # m h dom mon dow command >> * * * *

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Roger Price
On Sat, 16 Jul 2022, Lee wrote: I don't have play, so I tried aplay .. and it works, even if I'm logged out, even if someone else is logged in. ## run the script every minute $ crontab -l | tail -3 # m h dom mon dow command * * * * */home/lee/bin/neener.sh ## which plays a .wav

Re: Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Lee
On 7/16/22, Roger Price wrote: > People occasionally have a cron job emit some sound each hour. On my Debian > 9 > machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a > script bark.sh which does the barking. Typically > > 0,1 0,12 * * * rprice full-pa

Debian 9 cron = sounds are ok : Debian 11 cron no sound

2022-07-16 Thread Roger Price
People occasionally have a cron job emit some sound each hour. On my Debian 9 machine I hear Biff [1] barking. In /etc/crontab I have an entry to call a script bark.sh which does the barking. Typically 0,1 0,12 * * * rprice full-path-to/bark.sh 12 2>>&1 where bark.sh is a Bash sc

Re: Cron removal - unstable, question

2022-06-12 Thread Andy Smith
Hello, On Sun, Jun 12, 2022 at 11:56:26PM +0100, Štěpán Košan wrote: > really sorry to bother with a stupid question, however I was wondering, I > got a warning that CRON is about to be removed in the upgrade, but it seems > it's still on. Is there a plan to remove it eventually? I have

Cron removal - unstable, question

2022-06-12 Thread Štěpán Košan
Hello everyone, really sorry to bother with a stupid question, however I was wondering, I got a warning that CRON is about to be removed in the upgrade, but it seems it's still on. Is there a plan to remove it eventually? Thank you and I apologize If this list is only for Debian stable. Best

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-07 Thread Andrei POPESCU
On Du, 06 dec 20, 12:23:43, Martin McCormick wrote: > > An on-going problem about self-education is that it's > easy to limit the scope so much that we miss connections. > Systemd timers doesn't even sound like a replacement for cron but > think of it as cron on steroi

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-06 Thread Martin McCormick
come up in the right order and that's totally a systemd thing. While searching for ways to use cron with different time zones, I found out about something called systemd timers just mentioned in this thread and it appears they definitely will do the job but one must magically have made the co

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-04 Thread Andrei POPESCU
On Jo, 03 dec 20, 07:39:14, Martin McCormick wrote: > > So, I need to read more general information about the > differences between systemd and what we've been using up to > recently. The Wikipedia page and/or https://systemd.io might be a good place to start. Kind regards, Andrei --

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Andy Smith
Hi David, On Fri, Dec 04, 2020 at 01:32:35PM +1100, David wrote: > On Fri, 4 Dec 2020 at 13:10, Andy Smith wrote: > > So much text written without clear statement of problem! > > I understand why you wrote that, but you might be unaware that > Martin has previously mentioned on this list that

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread David
On Fri, 4 Dec 2020 at 13:10, Andy Smith wrote: [...] > I am surprised that just looking up documentation > on systemd timers doesn't answer that question for you. [...] > So much text written without clear statement of problem! I understand why you wrote that, but you might be unaware that

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Andy Smith
Hello, On Thu, Dec 03, 2020 at 07:39:14AM -0600, Martin McCormick wrote: > I am guilty as charged but haven't yet found the relevant information > as to how systemd helps solve this issue. You can put a time zone in a systemd timer. I can't see how it can be stated any simpler than that. If you

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Fabrice BAUZAC-STEHLY
gt; one doesn't think about it since these shifts don't all happen on > the same time. Maybe you could create ~/.config/cron/bcast.vixie: 45 17 * * mon-fri echo hello or whatever command you want And install mcron, then run: TZ=Europe/London mcron --daemon -- Fabrice

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-03 Thread Martin McCormick
> On Wed, Dec 02, 2020 at 01:58:45PM +, James B wrote: > > This might be wrong, but as far as I understand doesn't systemd > > now have the ability to manage cron jobs (as well as mount points, > > home folders and other things)?. Is there anything in this newer > &g

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 01:17:02PM -0500, Dan Ritter wrote: > As a name for the utility, I suggest "do-if-time-in" and require > three parameters: > > do-if-time-in timezone time "command" > > As an interim fix, though: (and I know Greg's going to fix this) > > --- > #!/bin/bash > TZ=$1 >

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Dan Ritter
s approach requires one of: - convince the upstream maintainer of cron to adopt it - convince the Debian maintainer of cron to adopt it as a patch that gets applied and potentially broken/fixed on each release - creates a new cron package in competition with the existing one - creates

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Martin McCormick
un on the 27th through the 30th every > month. Then within the job itself, determine whether it's the > correct day, and abort if it's not. What I was thinking of is a modification to cron which should integrate nicely with what cron already does. Crontab would have a new fiel

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread James B
erstand doesn't systemd > > now have the ability to manage cron jobs (as well as mount points, > > home folders and other things)?. Is there anything in this newer > > functionality that might make such a thing (re the request at the > > beginning of this thread) possible?

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Andy Smith
Hello, On Wed, Dec 02, 2020 at 01:58:45PM +, James B wrote: > This might be wrong, but as far as I understand doesn't systemd > now have the ability to manage cron jobs (as well as mount points, > home folders and other things)?. Is there anything in this newer > functionality tha

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 08:53:28AM -0500, Dan Ritter wrote: > It would not be ridiculous to run a wrapper program out of, e.g. > cron.hourly, which used an explicitly set TZ as a cue to run > another job. I was vaguely thinking of a similar approach. Set up a job that runs every hour, or across

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Eduardo M KALINOWSKI
On 02/12/2020 10:30, Martin McCormick wrote: > In a recent discussion, someone indicated that there might be a > way to set individual parts such as accounts on a unix system so > that cron could use another time zone if needed to kickoff jobs > on that system based on the time in ano

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread James B
This might be wrong, but as far as I understand doesn't systemd now have the ability to manage cron jobs (as well as mount points, home folders and other things)?. Is there anything in this newer functionality that might make such a thing (re the request at the beginning of this thread

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Dan Ritter
Greg Wooledge wrote: > On Wed, Dec 02, 2020 at 07:30:22AM -0600, Martin McCormick wrote: > > In a recent discussion, someone indicated that there might be a > > way to set individual parts such as accounts on a unix system so > > that cron could use another time zone if n

Re: Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Greg Wooledge
On Wed, Dec 02, 2020 at 07:30:22AM -0600, Martin McCormick wrote: > In a recent discussion, someone indicated that there might be a > way to set individual parts such as accounts on a unix system so > that cron could use another time zone if needed to kickoff jobs > on that

Cron Jobs and Time Zones Has Anything Changed?

2020-12-02 Thread Martin McCormick
In a recent discussion, someone indicated that there might be a way to set individual parts such as accounts on a unix system so that cron could use another time zone if needed to kickoff jobs on that system based on the time in another country. As far as I understand cron, one can set

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Fred
On 11/24/20 5:05 AM, Nicholas Geovanis wrote: On Tue, Nov 24, 2020, 4:58 AM Reco > wrote:         Hi. On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: . > > Thanks for the gory details.

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread tomas
On Tue, Nov 24, 2020 at 06:05:14AM -0600, Nicholas Geovanis wrote: [...] > It must be said: Kuhscheiß, bullshit. > > Voices said that systemd was over-engineered before it was even really > available [...] My take (if it matters at all) is that I don't like that overcomplex design (not only

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Nicholas Geovanis
On Tue, Nov 24, 2020, 4:58 AM Reco wrote: > Hi. > > On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: > . > > > > Thanks for the gory details. You spoilt my breakfast ;-) > > I really feel sorry for that. > But in this regard systemd is akin to many other things in

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread Reco
Hi. On Tue, Nov 24, 2020 at 10:05:26AM +0100, to...@tuxteam.de wrote: > On Tue, Nov 24, 2020 at 09:32:49AM +0300, Reco wrote: > > On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > > > 1. Why, when the script is run by the user cron job, the executi

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-24 Thread tomas
On Tue, Nov 24, 2020 at 09:32:49AM +0300, Reco wrote: > Hi. > > On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > > 1. Why, when the script is run by the user cron job, the execution > > requires authentication, while run from the same u

Re: Executing 'systemctl poweroff' from script run by cron.

2020-11-23 Thread Reco
Hi. On Mon, Nov 23, 2020 at 10:55:50PM -, Juan R. de Silva wrote: > 1. Why, when the script is run by the user cron job, the execution > requires authentication, while run from the same user terminal, it does > not. What "systemctl poweroff" actually does (src/sy

Executing 'systemctl poweroff' from script run by cron.

2020-11-23 Thread Juan R. de Silva
I am running Buster after fairly deafult installation. One of my scripts executes '/usr/bin/systemctl poweroff' command. And I am having trouble executing this script from cron. 1. If run from user's CLI, the script succeeds. 2. If run from root crontab the script succeeds. 3. If run from

Re: Réduire la verbosité de cron

2020-11-20 Thread steve
Le 20-11-2020, à 08:56:50 +0100, Fabrice BAUZAC-STEHLY a écrit : - Remplacer le "@include common-session-noninteractive" par le contenu du fichier Qu'est-ce que ça apporterait ? Le but est de ne modifier que la configuration PAM de cron, pas de modifier d'autres choses com

Re: Réduire la verbosité de cron

2020-11-19 Thread Fabrice BAUZAC-STEHLY
steve writes: > Le 18-11-2020, à 22:13:35 +0100, Fabrice BAUZAC-STEHLY a écrit : >>steve writes: >>> Cron remplit les logs d'information que je considère comme inutile. >>> Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session opened for >>> user

Re: Réduire la verbosité de cron

2020-11-18 Thread steve
Le 18-11-2020, à 22:13:35 +0100, Fabrice BAUZAC-STEHLY a écrit : steve writes: Cron remplit les logs d'information que je considère comme inutile. Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session opened for user _tuptime by (uid=0) Nov 18 18:05:01 box CRON[18456]: pam_unix

Re: Réduire la verbosité de cron

2020-11-18 Thread Fabrice BAUZAC-STEHLY
steve writes: > Cron remplit les logs d'information que je considère comme inutile. > > Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session opened for > user _tuptime by (uid=0) > Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session closed for > user

Réduire la verbosité de cron

2020-11-18 Thread steve
Cron remplit les logs d'information que je considère comme inutile. Exemple: Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session opened for user _tuptime by (uid=0) Nov 18 18:05:01 box CRON[18456]: pam_unix(cron:session): session closed for user _tuptime Nov 18 18:10:01 box CRON

Re: cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Beco
Thanks Reco, I don't know how you keep up after all these years seen you here on the debian list. Congrats. Beco. On Tue, 15 Sep 2020 at 11:36, Reco wrote: > Hi. > > On Tue, Sep 15, 2020 at 11:19:39AM -0300, Beco wrote: > > Is this pam module deprecated? > > Yes, it was removed

Re: cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Reco
Hi. On Tue, Sep 15, 2020 at 11:19:39AM -0300, Beco wrote: > Is this pam module deprecated? Yes, it was removed from main archive back in 2018 - [1]. > I can't find the package that provides it on > debian buster. There's no package in buster that provides the PAM module or ConsoleKit

cron consolekit pam_ck_connector.so: no such file

2020-09-15 Thread Beco
Dear debians, Is this pam module deprecated? I can't find the package that provides it on debian buster. And I get a lot of logs: CRON: PAM adding faulty module: pam_ck_connector.so SSHD: PAM adding faulty module: pam_ck_connector.so unable to dlopen(pam_ck_connector.so): /lib/security

  1   2   3   4   5   6   7   8   9   10   >