Are cron tasks in `/etc/cron.d/` files supposed to not contain `sudo`?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
In /etc/cron.d/myjob
, I create a cron task of running a bash script and redirect its stdout and stderr to a log file. The script contains a line of sudo
running a command.
In the log file:
sudo: no tty present and no askpass program specified
Does that cause some problem that needs my attention?
I was wondering if cron tasks in /etc/cron.d/
files are supposed to not contain sudo
?
Thanks.
sudo cron
add a comment |Â
up vote
0
down vote
favorite
In /etc/cron.d/myjob
, I create a cron task of running a bash script and redirect its stdout and stderr to a log file. The script contains a line of sudo
running a command.
In the log file:
sudo: no tty present and no askpass program specified
Does that cause some problem that needs my attention?
I was wondering if cron tasks in /etc/cron.d/
files are supposed to not contain sudo
?
Thanks.
sudo cron
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In /etc/cron.d/myjob
, I create a cron task of running a bash script and redirect its stdout and stderr to a log file. The script contains a line of sudo
running a command.
In the log file:
sudo: no tty present and no askpass program specified
Does that cause some problem that needs my attention?
I was wondering if cron tasks in /etc/cron.d/
files are supposed to not contain sudo
?
Thanks.
sudo cron
In /etc/cron.d/myjob
, I create a cron task of running a bash script and redirect its stdout and stderr to a log file. The script contains a line of sudo
running a command.
In the log file:
sudo: no tty present and no askpass program specified
Does that cause some problem that needs my attention?
I was wondering if cron tasks in /etc/cron.d/
files are supposed to not contain sudo
?
Thanks.
sudo cron
sudo cron
asked 6 mins ago
Tim
24.4k69238426
24.4k69238426
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478779%2fare-cron-tasks-in-etc-cron-d-files-supposed-to-not-contain-sudo%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password