[Pkg-shadow-devel] passwd behavior

Nicolas François nicolas.francois at centraliens.net
Wed Apr 5 22:08:13 UTC 2006


Hello,

Do you have an idea of the number of passwords per second that could be
checked by running passwd?

I'm thinking of two implementations:
 * If password do not block any signal
   execute passwd in a loop and send the signal (KILL if needed) after
   waiting a little bit (I don't think it is possible not to wait at least
   a "little bit", this "little bit" will be difficult to define).
 * If password do block every signal (and it is not possible to kill it)
   Use 1000 threads to execute multiple passwd instances (and wait for the
   passwd delay, without sending any signals)

I don't think the first solution will provide a good passwd/s ratio.

Do you think the second implementation is slower than the first one or
irrealistic (could be blocked by ulimits?)?
If not, then I think there is no need to block any signals.

Kind Regards,
-- 
Nekral



More information about the Pkg-shadow-devel mailing list