Re: [Pkg-shadow-devel] passwd behavior
Nicolas François <[email protected]> Thu, 6 Apr 2006 00:08:13 +0200
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
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