LinuxCommandLibrary

encfs

user-space encrypted filesystem using FUSE

TLDR

Create/mount encrypted directory

$ encfs [~/.encrypted] [~/private]
copy
Create with standard mode
$ encfs -s [~/.encrypted] [~/private]
copy
Unmount encrypted directory
$ fusermount -u [~/private]
copy
Change password
$ encfsctl passwd [~/.encrypted]
copy
Show volume info
$ encfsctl info [~/.encrypted]
copy
Idle timeout unmount
$ encfs -i [10] [~/.encrypted] [~/private]
copy

SYNOPSIS

encfs [options] encdir mountpoint

DESCRIPTION

encfs provides encrypted filesystem in user-space using FUSE. It encrypts files individually, storing them in a directory with encrypted names and contents.
The tool is useful for encrypting cloud-synced folders or sensitive directories. Each file is encrypted separately, allowing efficient sync of changed files.

PARAMETERS

-s

Single-threaded mode.
-f
Run in foreground.
-v
Verbose mode.
-i minutes
Idle timeout before unmount.
-o options
FUSE mount options.
--standard
Use standard (safer) settings.
--paranoid
Use paranoid settings.
--reverse
Reverse mode for backups.
--extpass cmd
External password program.

CONFIGURATION

.encfs6.xml

Configuration file stored in the encrypted directory containing encryption parameters and settings.

CAVEATS

Leaks file sizes and directory structure. Not resistant to watermarking attacks. Consider newer alternatives like gocryptfs. FUSE adds overhead. Passphrase recovery not possible.

HISTORY

encfs was created by Valient Gough in 2003. It pioneered user-space encrypted filesystems on Linux. While popular for years, security audits revealed weaknesses, leading to recommendations for alternatives like gocryptfs for new deployments.

SEE ALSO

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community