E4CRYPT(8)                 System Manager's Manual                E4CRYPT(8)

NAME         top

       e4crypt - ext4 filesystem encryption utility

SYNOPSIS         top

       e4crypt add_key -S [ -k keyring ] [-v] [-q] [  path ... ]
       e4crypt new_session
       e4crypt get_policy path ...
       e4crypt set_policy policy path ...

DESCRIPTION         top

       e4crypt performs encryption management for ext4 file systems.

COMMANDS         top

       e4crypt add_key -S [ -k keyring ] [-v] [-q] [  path ... ]
              Prompts the user for a passphrase and inserts it into the
              specified keyring.  If no keyring is specified, e4crypt will
              use the session keyring if it exists or the user session
              keyring if it does not.

              If one or more directory paths are specified, e4crypt will try
              to set the policy of those directories to use the key just
              entered by the user.

       e4crypt get_policy path ...
              Print the policy for the directories specified on the command

       e4crypt new_session
              Give the invoking process (typically a shell) a new session
              keyring, discarding its old session keyring.

       e4crypt set_policy policy path ...
              Sets the policy for the directories specified on the command
              line.  All directories must be empty to set the policy; if the
              directory already has a policy established, e4crypt will
              validate that the policy matches what was specified.  A policy
              is an encryption key identifier consisting of 16 hexadecimal

AUTHOR         top

       Written by Michael Halcrow <>, Ildar Muslukhov
       <>, and Theodore Ts'o <>

SEE ALSO         top

       keyctl(1), mke2fs(8), mount(8).

COLOPHON         top

       This page is part of the e2fsprogs (utilities for ext2/3/4
       filesystems) project.  Information about the project can be found at
       ⟨⟩.  It is not known how to report
       bugs for this man page; if you know, please send a mail to  This page was obtained from the project's
       upstream Git repository
       ⟨git://⟩ on 2017-11-25.
       (At that time, the date of the most recent commit that was found in
       the repository was 2017-10-18.)  If you discover any rendering prob‐
       lems in this HTML version of the page, or you believe there is a bet‐
       ter or more up-to-date source for the page, or you have corrections
       or improvements to the information in this COLOPHON (which is not
       part of the original manual page), send a mail to

E2fsprogs version 1.43.7        October 2017                      E4CRYPT(8)