Philip Guenther <[email protected]> schrieb am Samstag, 17. Juli 2021 um 11:09:

> On Fri, Jul 16, 2021 at 11:49 PM podolica <[email protected]> wrote:
>
>> On my OpenBSD installation (6.9) one of the log files created by login(1)
>> seems to be a binary file:
>> $ less /var/log/failedlogin
>> "failedlogin" may be a binary file. See it anyway?
>
> ...
>
>> What can I learn from this logfile?
>> A lot of repeating null bytes and "ttyC2" and "ttyC3" does not seems
>> to be very informative.
>>
>> Is this an error?
>
> No, it's not an error. That file is specific to the 'login' command, 
> specifically the source file /usr/src/usr.bin/login/failedlogin.c and 
> consists of an array of the 'badlogin' structure specified there. If you want 
> to dump its contents in a more readable format then you should write a small 
> program to do so in C or some other language which can easily handle binary 
> files.
>
> Philip Guenther

Thank you, that seems to be an explanation. Lerning never stops :-)

Reply via email to