neurodroid / cryptonite

EncFS and TrueCrypt on Android
GNU General Public License v2.0
203 stars 49 forks source link

"encfs --extpass" doesn't launch external program #30

Open neurodroid opened 10 years ago

neurodroid commented 10 years ago

From piecha...@gmail.com on June 08, 2012 21:31:32

What steps will reproduce the problem? 1. open root terminal

  1. enter '/data/data/csh.cryptonite/encfs -o allow_other --extpass='echo ' /.../.encrypted /sdcard/csh.cryptonite/mnt What is the expected output? What do you see instead? Exptected output: encrypted folder gets mounted in /sdcard/csh.cryptonite/mnt.

Instead I get the error "Internal error: failed to exec program: No such file or directory". It doesn't matter if I use single ' or double " or what kind of command with or witout busybox. The password doesn't get passed or parsed by the external program. What version of the product are you using? On what operating system? EncFS 1.7.4 Cryptonite 0.6.12 Android 4.0.4 Please provide any additional information below. Does work on Linux. Have to use --stdinpass and pipe the password to encfs.

Cheers, sebastian

Original issue: http://code.google.com/p/cryptonite/issues/detail?id=30

neurodroid commented 10 years ago

From christoph.schmidthieber@gmail.com on June 09, 2012 02:21:27

Can't reproduce this, extpass works on my device. Supposedly you've already tried to provide the full path to echo (/system/xbin/echo on my system)? Does the same command work with --stdinpass or password prompt?

Owner: christoph.schmidthieber@gmail.com

neurodroid commented 10 years ago

From piecha...@gmail.com on June 09, 2012 05:51:47

Checked it on a second phone with ICS 4.0.4 (but without busybox installed). Same issue - can't use --extpass with for instance the echo command. "--stdinpass" with echo does work instead.

neurodroid commented 10 years ago

From christoph.schmidthieber@gmail.com on June 09, 2012 06:22:16

Have you tried providing the full path to echo?

/data/data/csh.cryptonite/encfs -o allow_other --extpass='/system/xbin/echo ' src dest

or wherever echo is located on your system (check with 'which echo')

neurodroid commented 10 years ago

From piecha...@gmail.com on June 09, 2012 06:37:52

yes - on first device with busubox installed tried: "/system/bin/busysbox echo ..." and "/system/bin/echo ...".

On 2nd device without busybox installed tried echo with and without full path.

BlueMax commented 9 years ago

Encfs v1.7.4 expects the shell in '/bin/sh' whereas v1.7.5 looks in '/system/bin/sh'. That's why it works properly in v.1.7.5 and not in v1.7.4.