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

Adam Funk a24061 at ducksburg.com
Wed Apr 8 09:34:42 UTC 2015


On 2015-04-07, sktsee wrote:

> 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.

Oh, it's my fault then --- I installed Terminator on it because that's
what I like to use!  I didn't know I'd set it to be the default
terminal emulator, though --- I guess I can change that (looking
through /etc/alternatives on my own machine) by using
update-alternatives to change '/etc/alternatives/x-terminal-emulator'?


> 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

Thanks!





More information about the ubuntu-users mailing list