Am 10/21/2009 04:47 PM, schrieb Ted Unangst:
You have the source to bioctl....
On Wed, Oct 21, 2009 at 9:52 AM, elias r.<obs...@crudp.ath.cx> wrote:
Am 10/21/2009 03:43 PM, schrieb Alexander Hall:
elias r. wrote:
hum, nobody's got an answer?
is there maybe a way via the shell pipelining to read the passphrase
from a file and write it to stdin?
should this work?:
bioctl -c C -l /dev/wd0a softraid0< pass.keyfile
If will by default try to read it from /dev/tty, so you need to trick it
not to.
man readpassphrase
hum, ok, that sounds logical...
do you have any suggestions how to do it?
right now, i don't have an idea how to prevent a root-priviledged program
from reading from tty...
and the flags mentioned in the man-page are all set at compile-time, aren't
they?
yep, your right.
actually I've already looked at it for a bit and i was a bit afraid
putting my untrained hands on the code before i tried the possibilities
given my by the existing code.
but maybe i'll go for it because it seems like the cleaner solution.