sudoers.d/ffs
homers ALL = NOPASSWD: /home/homers/Software/FreeFileSync/FreeFileSync
in my crontab I am having this line now:
0 14 * * * sudo env DISPLAY=:10.0 /home/homers/Software/FreeFileSync/FreeFileSync /home/homers/Documents/data2databkp.ffs_batch 2>&1 | /home/homers/scripts/timestamp.sh >> /home/homers/ffs.log
sudo: no tty present and no askpass program specified
BTW all is on a ubuntu 18.0.4 server