[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tarsnap-keygen script usage
Oops, somehow I missed this when it first came in.
I don't think it's possible to specify a passphrase from a script unless
you fake a terminal -- given that a passphrase is supposed to be "something
you know" (and are sitting at a terminal typing in) rather than "something
you have" I'm not even sure why you want a script to provide the passphrase.
On 06/02/11 03:13, Kevin Gilpin wrote:
> Can someone advise me on this question please?
>
> - kevin
>
> On Sat, May 28, 2011 at 9:38 PM, Kevin Gilpin <kevin.gilpin@praxeon.com
> <mailto:kevin.gilpin@praxeon.com>> wrote:
>
> I would like to provide the
>
> --passphrased
>
> argument from a script. How can I do that?
>
> I have tried putting the arguments in a file separated by newlines
> and then:
>
> cat /tmp/tarsnap.txt | /usr/local/bin/tarsnap-keygen
>
> but it didn't work. tarsnap-keygen prompted for the passphrase even
> though the file contained 3 lines (my password, passphrase,
> passphrase again)
--
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid