---
name: "cmkkey"
section: "1"
platform: "linux"
package: "cfs"
version: "1.4.1-17"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/cmkkey"
---

# cmkkey(1)

create secondary copy of CFS directory key

## NAME

cmkkey - create secondary copy of CFS directory key

## SYNOPSIS

**cmkkey** *olddir* *newdir*

## DESCRIPTION

**cmkkey** creates a secondary copy of the key for an encrypted Cryptographic File System (CFS) directory.  The secondary key is initially the same as the original key, but can be changed with the **cpasswd** command.

Only CFS 1.4 or later directories (and not created with cmkdir -o) can have secondary key files.

## FILES

- *newdir*/..k

  New secondary encyrpted key file.

- *newdir*/..data

  Link to encrypted directory *olddir*.

## SEE ALSO

[cfsd(8)](/cfsd/8.md), [cattach(1)](/cattach/1.md), [cmkdir(1)](/cmkdir/1.md), [cpasswd(1)](/cpasswd/1.md)

## BUGS

Any symbolic links in *olddir* are resolved at the time cmkkey is run; this could cause *newdir*/..data to break if one of these links moves.  (This can be fixed by re-linking to the correct place by hand).

## AUTHOR

Matt Blaze; for information on cfs, email to cfs@research.att.com.
