novendraap / cryptonite

Automatically exported from code.google.com/p/cryptonite
GNU General Public License v2.0
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open root terminal
2. enter '/data/data/csh.cryptonite/encfs -o allow_other --extpass='echo <your 
password>' /.../.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 reported on code.google.com by piecha...@gmail.com on 8 Jun 2012 at 8:31

GoogleCodeExporter commented 8 years ago
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?

Original comment by christoph.schmidthieber@gmail.com on 9 Jun 2012 at 9:21

GoogleCodeExporter commented 8 years ago
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.

Original comment by piecha...@gmail.com on 9 Jun 2012 at 12:51

GoogleCodeExporter commented 8 years ago
Have you tried providing the full path to echo?

# /data/data/csh.cryptonite/encfs -o allow_other --extpass='/system/xbin/echo 
<your password>' src dest

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

Original comment by christoph.schmidthieber@gmail.com on 9 Jun 2012 at 1:22

GoogleCodeExporter commented 8 years ago
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.

Original comment by piecha...@gmail.com on 9 Jun 2012 at 1:37

GoogleCodeExporter commented 8 years ago
This issue has moved to https://github.com/neurodroid/cryptonite/issues/30

Original comment by christoph.schmidthieber@gmail.com on 28 Aug 2014 at 3:54