KSWITCH(1) MIT Kerberos KSWITCH(1)

# [NAME](#NAME)

kswitch - switch primary ticket cache

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

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

# [OPTIONS](#OPTIONS)

[**-c** *cachename*](#c)

Directly specifies the credential cache to be made primary.

[**-p** *principal*](#p)

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

# [ENVIRONMENT](#ENVIRONMENT)

See *kerberos* for a description of Kerberos environment variables.

# [FILES](#FILES)

[**FILE:/tmp/krb5cc\_%{uid}**](#FILE:/tmp/krb5cc___uid_)

Default location of Kerberos 5 credentials cache

# [SEE ALSO](#SEE_ALSO)

*kinit*, *kdestroy*, *klist*, *kerberos*

# [AUTHOR](#AUTHOR)

MIT

# [COPYRIGHT](#COPYRIGHT)

1985-2026, MIT

1.22.2

---

Document: kswitch(1) from krb5 1.22.2-r4 (Chainguard OS)
Source: https://github.com/krb5/krb5.git
