If some reasons you need to use sudo in a cron job, for example if you use ltib (Linux Target Image Builder) in a nightly build script, you may realize that it does not work by default and you may get the message:
sudo: sorry, you must have a tty to run sudo
In that case simply run visudo and comment out the line:
Jean-Luc started CNX Software in 2010 as a part-time endeavor, before quitting his job as a software engineering manager, and starting to write daily news, and reviews full time later in 2011.
|Support CNX Software - Donate via PayPal or become a Patron on Patreon|