"Record your encryption passphrase" ... "Unable to find a shell"

sktsee sktseer at gmail.com
Tue Apr 7 17:13:40 UTC 2015


On Tue, 07 Apr 2015 13:15:48 +0100, Adam Funk wrote:

> Hi,
> 
> I helped a friend set up an Ubuntu laptop with the Ubuntu-standard
> encrypted home directories option.  He showed me the "Record your
> encryption passphrase" dialog yesterday, but when he clicked on the
> option to go ahead, a terminal opened up with just an "Unable to find a
> shell" error message.
> 
> How is the system unable to find a shell?  (It has bash & the other
> system defaults on it.)  How to fix this?
> 
> 

Your friend apparently is using Terminator as the default terminal 
emulator? Apparently the quoted command in /usr/share/ecryptfs-utils/
ecryptfs-record-passphrase is causing this behavior in Terminator:
https://bugs.launchpad.net/terminator/+bug/1420829.

The quoted command is this:
"sh -c 'ecryptfs-unwrap-passphrase $HOME/.ecryptfs/wrapped-passphrase 2>/
dev/null && echo [Enter] && head -n1 && touch $HOME/.ecryptfs/.wrapped-
passphrase.recorded '"  From what I glean from the above bug report, 
Terminator is treating everything in the quotes as a single command and 
trying to find it somewhere in the $PATH, but can't. That seems to be an 
issue with Terminator though I don't know what the solution would be for 
it. 

With this particular problem, though, the easiest thing to do would be to 
show the unwrapped mount passphrase and then create the recorded flag 
file in ~/.ecryptfs manually.

To show unwrapped mount passphrase
$ ecryptfs-unwrap-passphrase ~/.ecryptfs/wrapped-passphrase

Write that down because you may need it for recovery purposes in the 
future.

Set the flag file to stop prompts about recording the passphrase when 
logging in.
$ touch ~/.ecryptfs/.wrapped-passphrase.recorded

-- 
sktsee





More information about the ubuntu-users mailing list