Site-wide Tags:  Linux(17) | CommandLine(12) | Ubuntu(10) | RemoteAccess(7) | Tools(7) | Vim(7) | LiftWeb(5) | SBT(5) | SoftwareDev(5) | Mac(5) | Scripts(4) | WebDev(4) | Diagrams(4) | Lifty(3) | NetworkDrives(3) | Processwire(3) | Security(3) | Fog(3) | VCS(3) | BestPractices(3) | RaspberryPi(2) | WebDesign(2) | Encryption(2) | Windows(2) | SSH(2) | WinCommandPrompt(2) | GitHubRepos(2) | Emacs(2) | PHP(2) | IDE(2) | ErrorMsgs(2) | JVM(2) | Hardware(2) | Bash(2) | Networks(2) | Graphviz(2) | Cloning | Cygwin | Graphics | Java | SystemRecovery | lessc | Maven | Python | PXE | Samba | LXDE | PackageManagement | LifeHacks | LESS |

This site has been archived and will no longer be updated.
You can find my new profile at neilpahl.com. My new blog is at 808.ninja.

Fix "adduser: Could not find program named `ecryptfs-setup-private' in $PATH".

Tags:  Ubuntu   Encryption   ErrorMsgs   
Created on Tue, 10 Apr 2012.

Motivation Behind This Cheatsheet

I was creating a user with encrypted home directory usnig "adduser --encrypt-home username" when I got the mentioned error.

The Cheatsheet

To solve this, you need ecryptfs-utils... so,

sudo apt-get install ecryptfs-utils

will do it for you. But, if you try run "adduser --encrypt-home username" again, you will get an error saying

ERROR:  Cannot get ecryptfs version, ecryptfs kernel module not loaded?
adduser: `/usr/bin/ecryptfs-setup-private -b -u username' returned error code 1. Exiting.

so, I restarted my server with

sudo shutdown -r now

Further Discussion

This happened to me on a fresh install of ubuntu 10.04



PLEASE let me know if I'm doing something wrong, or if you have any suggestions or requests~

blog comments powered by Disqus