---
name: "kswitch.mit"
section: "1"
platform: "linux"
package: "krb5-user"
version: "1.21.3-5+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kswitch.mit"
---

# kswitch.mit(1)

switch primary ticket cache

## NAME

kswitch - switch primary ticket cache

## SYNOPSIS

**kswitch** {**-c** *cachename*\|**-p** *principal*}

## DESCRIPTION

kswitch makes the specified credential cache the primary cache for the collection, if a cache collection is available.

## OPTIONS

- **-c** *cachename*

  Directly specifies the credential cache to be made primary.

- **-p** *principal*

  Causes the cache collection to be searched for a cache containing credentials for *principal*.  If one is found, that collection is made primary.

## ENVIRONMENT

See [kerberos(7)](/kerberos/7.md) for a description of Kerberos environment variables.

## FILES

- **FILE:/tmp/krb5cc\_%{uid}**

  Default location of Kerberos 5 credentials cache

## SEE ALSO

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

## AUTHOR

MIT

## COPYRIGHT

1985-2024, MIT
