Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I run a cron job with Kerberos authentication?

0
Posted

How do I run a cron job with Kerberos authentication?

0

Nothing can authenticate to Kerberos without providing a password/encryption key. The same holds true for cron jobs. In practice, you typically have two choices for providing Kerberos authentication for any program: • A human types in a password on a keyboard. • A password/encryption key is stored somewhere on a machine Obviously, both of these also apply to cron jobs. So to provide Kerberos authentication to cron jobs, you would either have to have a human type in a password at the appropriate time, or store the password/encryption key somewhere where the cron job could read it. What I (and others) have done with success is the following: • Create a special “cron” user (possibly username/cron). • Use kadmin to place a keytab for that user on the workstation where you are going to use cron. kadmin: ktadd -k user.keytab username/cron • Use the -k flag to kinit to get a TGT for that user using the stored keytab. kinit -k -t user.

0

Nothing can authenticate to Kerberos without providing a password/encryption key. The same holds true for cron jobs. In practice, you typically have two choices for providing Kerberos authentication for any program: 1. A human types in a password on a keyboard. 2. A password/encryption key is stored somewhere on a machine Obviously, both of these also apply to cron jobs. So to provide Kerberos authentication to cron jobs, you would either have to have a human type in a password at the appropriate time, or store the password/encryption key somewhere where the cron job could read it. What I (and others) have done with success is the following: 1. Create a special “cron” user (possibly username/cron). 2. Use kadmin to place a keytab for that user on the workstation where you are going to use cron. kadmin: ktadd -k user.keytab username/cron 3. Use the -k flag to kinit to get a TGT for that user using the stored keytab. kinit -k -t user.keytab username/cron Note that this applies to any sor

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123