Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Rich Shepard
On Tue, 2 Jan 2024, Paul Heinlein wrote: As Galen noted, it's "man 5 crontab." I specified it because many systems have two crontab man pages, one in section 1, the other in section 5. The section 1 page becomes the default. Paul, I don't have a crontab manual in section 5. And what I was

Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Paul Heinlein
On Tue, 2 Jan 2024, Rich Shepard wrote: On Tue, 2 Jan 2024, Paul Heinlein wrote: The Linux distributions I use all have an /etc/cron.d directory that allows you to run scripts under any UID, no sudo required. Paul, Yes, Slackware has an /etc/cron.d directory. The modified crontab

Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Rich Shepard
On Tue, 2 Jan 2024, Galen Seitz wrote: The syntax is: man section_number something_to_lookup so man 5 crontab galen, It's been so long I've needed to specify a section I had to look for the syntax and didn't find the proper one. Many thanks, Rich

Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Galen Seitz
On 1/2/24 08:46, Rich Shepard wrote: On Tue, 2 Jan 2024, Paul Heinlein wrote: The Linux distributions I use all have an /etc/cron.d directory that allows you to run scripts under any UID, no sudo required. Paul, Yes, Slackware has an /etc/cron.d directory. The modified crontab entries for

Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Rich Shepard
On Tue, 2 Jan 2024, Paul Heinlein wrote: The Linux distributions I use all have an /etc/cron.d directory that allows you to run scripts under any UID, no sudo required. Paul, Yes, Slackware has an /etc/cron.d directory. The modified crontab entries for snippets in that directory are

Re: [PLUG] Run crontab script using sudo

2024-01-02 Thread Paul Heinlein
On Tue, 2 Jan 2024, Rich Shepard wrote: I've added my username to /etc/sudoers. I have a script that needs to run using sudo with a user rather than by root. When I run the script's commands in a console I enter my password when requested by sudo. How can I have the script provide the

[PLUG] Run crontab script using sudo

2024-01-02 Thread Rich Shepard
I've added my username to /etc/sudoers. I have a script that needs to run using sudo with a user rather than by root. When I run the script's commands in a console I enter my password when requested by sudo. How can I have the script provide the password? Or, do I modify /etc/sudoers to allow me