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

Re: timeout function in cryptsetup init script



On 29/01/2006 Jan C. Nordholz wrote:
> without looking at the initscript in question... how does that sound?
> 
> ] (excerpt from bash manpage, unnecessary details stripped)
> ] read [-ers] [-u fd] [-t timeout] [-p prompt] [-n nchars] [-d delim] [name ...]
> ]   One line is read from the standard input, or from the file descriptor fd
> ]   supplied as an argument to the -u option [...]
> ]   -s
> ]    Silent mode. If input is coming from a terminal, characters are not echoed.
> ]   -t timeout
> ]    Cause read to time out and return failure if a complete line of input
> ]    is not read within timeout seconds.
> 
> I don't know how cryptdisks currently obtains its passphrases from the
> user, but I'd go this way.

indeed, it sounds exactly like what i'm searching for.

but unfortunately it looks like cryptsetup does not have support for
reading the password from stdin or command-line.

...
 jonas



Reply to: