---
name: "ksrvtgt"
section: "1"
platform: "linux"
package: "kerberos4kth-clients"
version: "1.2.2-11.2"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/ksrvtgt"
---

# ksrvtgt(1)

fetch and store Kerberos ticket-granting-ticket using a service key

## NAME

ksrvtgt - fetch and store Kerberos ticket-granting-ticket using a service key

## SYNOPSIS

**ksrvtgt** name instance \[\[realm\] srvtab\]

## DESCRIPTION

*ksrvtgt* retrieves a ticket-granting ticket with a lifetime of five (5) minutes for the principal *name.instance@realm* (or  *name.instance@localrealm* if *realm* is not supplied on the command line), decrypts the response using the service key found in *srvtab* (or in  **/etc/srvtab** if *srvtab* is not specified on the command line), and stores the ticket in the standard ticket cache.

This command is intended primarily for use in shell scripts and other batch-type facilities.

## DIAGNOSTICS

"Generic kerberos failure (kfailure)" can indicate a whole range of problems, the most common of which is the inability to read the service key file.

## FILES

- /etc/krb.conf

  to get the name of the local realm.

- /tmp/tkt\[uid\]

  The default ticket file.

- /etc/srvtab

  The default service key file.

## SEE ALSO

[kerberos(1)](/kerberos/1.md), [kinit(1)](/kinit/1.md), [kdestroy(1)](/kdestroy/1.md)
