Index

How can I run a Linux script for more than 1 day without staying logged in?

In order to be able to run a script longer without staying logged in, the runtime of the Kerberos ticket must be extended. The Kerberos ticket is an automatically created element after login, which verifies the successful login of the user. For security reasons, the status of the ticket must be updated by logging in again or by unlocking the display after at least 10 hours with the user password, otherwise all of the user’s processes will be terminated. With Linux commands on the command line, the runtime can be increased to up to 7 days.

The whole thing only works if you log in locally or via ssh. It does not work via Remote Desktop (rdp).

Precise instructions can be found here from the RRZE (german language):
https://www.anleitungen.rrze.fau.de/betriebssysteme/linux/anbindung-an-die-kerberos-infrastruktur-des-rrze/kerberos-und-langlaufende-prozesse/