LFS-FLUSHCTX(1) Lustre User Utilities LFS-FLUSHCTX(1)

# [NAME](#NAME)

lfs-flushctx - flush security context of current user.

# [SYNOPSIS](#SYNOPSIS)

`lfs flushctx` \[**--help**|**-h**] \[**-k**] \[**-r**] \[*rootpath*]

# [DESCRIPTION](#DESCRIPTION)

Flush security context of current user, for Lustre file system as specified by **rootpath**, or for all mounted Lustre file systems.

If **-k** is specified, proceed to Kerberos credentials cache destroy as well, by calling kdestroy.

If **-r** is specified, reap revoked keys from the session keyring.

# [OPTIONS](#OPTIONS)

[**-k**](#k)

Destroy the Kerberos credentials cache.

[**-r**](#r)

Remove revoked keys from the session keyring.

[**-h**](#h)

Print usage message.

# [EXAMPLES](#EXAMPLES)

Flush security context of current user for Lustre file system mounted under /mnt/lustre, as well as destroys its Kerberos credentials cache and reaps revoked keys from its session keyring. This is the recommended way of using the command:

```
# lfs flushctx -k -r /mnt/lustre
```

This simply flushes security context of current user for all mounted Lustre file systems:

```
# lfs flushctx
```

# [AVAILABILITY](#AVAILABILITY)

**lfs flushctx** is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) filesystem package since release 2.0.0

# [SEE ALSO](#SEE_ALSO)

[**lfs**(1)](/man/enterprise-packages/lustre/lfs.1),

2024-08-15 Lustre

---

Document: lfs-flushctx(1) from lustre 2.17.59-r1 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
