---
name: "kpagsh"
section: "1"
platform: "linux"
package: "heimdal-clients"
version: "7.8.git20221117.28daf24+dfsg-9+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kpagsh"
---

# kpagsh(1)

creates a new credential cache sandbox

## NAME

**pagsh** – creates a new credential cache sandbox

## SYNOPSIS

**pagsh** \[**-c** *command-string*\] \[**-h** \| **-****-help**\] \[**-****-version**\] \[**-****-cache-type=***string*\] *command* *\[args...\]*

## DESCRIPTION

Supported options:

-

  **-c** *command-string* Executes command(s) contained in *command-string*.

-

  **-****-cache-type=***string*

-

  **-h**, **-****-help**

-

  **-****-version**

**pagsh** creates a new credential cache sandbox for the user to live in. If AFS is installed on the computer, the user is put in a newly created Process Authentication Group (PAG).

For Kerberos 5, the credential cache type that is used is the same as the credential cache type that was used at the time of **pagsh** invocation. The credential cache type can be controlled by the option **-****-cache-type**.

## EXAMPLES

Create a new sandbox where new credentials can be used, while the old credentials can be used by other processes.

```
$ klist
Credentials cache: FILE:/tmp/krb5cc_913
        Principal: lha@E.KTH.SE
  Issued           Expires          Principal
Feb 12 10:08:31  Feb 12 20:06:36  krbtgt/E.KTH.SE@E.KTH.SE
$ pagsh
$ klist
klist: No ticket file: /tmp/krb5cc_03014a
```

## SEE ALSO

[afslog(1)](/afslog/1.md), [kinit(1)](/kinit/1.md)
