session timeout in Zorin Terminal
Session was geting auto logged off after 5 minutes of in-activity
journalctl -f showing below errors
pam_unix(cron:session): session opened for user root by (uid=0)
This was fixed by editing the file name /etc/pam.d/common-session-noninteractive
sudo vim /etc/pam.d/common-session-noninteractive
and adding new line
session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid
and restart crond
sudo service cron restart
This fixed the issue