<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-size: 13px;color: rgb(0, 0, 0);font-family: arial,sans-serif;">What we do in our environment is create "service users" that are designated for certain tasks.   Say you need to run a rsync job every night, after the user is created, you will need to create a keytab.  Then copy the keytab file over to the box that the cronjob will run on.  Then at the top of the script (which is called from the cronjob), add something like this:<br><br>/usr/kerberos/bin/kdestroy<br>/usr/kerberos/bin/kinit -k -t /home/srv_rsync/srv_rsync.keytab srv_rsync@MYDOMAIN.LOCAL<br><br>And you can verify that you have a TGT by using the klist command.<br><br>-Mike<br><blockquote style="padding-left: 5px; margin-left: 0px; border-left: #0000ff 2px solid; font-weight: normal; font-style: normal; text-decoration: none; font-size: 10pt; font-family: arial,sans-serif; color: black;">-----Original Message-----<br><br>From: Thomas Lau <br><br>Sent: Nov 6, 2014 8:20 PM<br><br>To: freeipa-users <br><br>Subject: [Freeipa-users] Kerberos for cronjoob<br><br><br><br>  ‎Hi, <br>Is it possible to renew ticket once in a while for cronjob to run on certain users? How do you guys run cronjob on Kerberos user without getting ticket expire? <br>Sent from my BlackBerry 10 smartphone.</blockquote></div></body></html>