Re: losetup -p & other oddities

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jari Ruusu wrote:
Wrong! -p option reads password from _open_ file descriptor 26, where 0 is
stdin, 1 is stdout, 2 is stderr, and so on. Pointing -p option to unopen fd
is equivalent to empty password.

Maybe you intended to do something like this:

losetup -k 128 -p 3 -e serpent /dev/loop6 /dev/sdb2  3</path/to/some/file
               ^^^^                                  ^^^^^^^^^^^^^^^^^^^^


oh, well, --> what? who did such a thing to losetup? "reading from an open file descriptor", i guess it could not be made any more complicated.
hm, ok, now that i've got this it i found out that it was really set to an empty password. ouch!


the manpage of "losetup" said:

--pass-fd, -p num
  read the passphrase from file descriptor num instead of the terminal.

i was not familar to this "#</path/to/file" thing yet.

(undefined encryption?)

undefined == CryptoAPI

ah, ok.


Thank you very much for this quick response!

Christian.

Regards,
Jari Ruusu <jari.ruusu@xxxxxxxxxx>

actually, sb. told me in a newsgroup to go to "linux-crypto", Jari will help :-) an he did! cool...


--
BOFH excuse #230:

Lusers learning curve appears to be fractal

-
Linux-crypto:  cryptography in and on the Linux system
Archive:       http://mail.nl.linux.org/linux-crypto/


[Index of Archives]     [Kernel]     [Linux Crypto]     [Gnu Crypto]     [Gnu Classpath]     [Netfilter]     [Bugtraq]
  Powered by Linux