File: //usr/lib/python3/dist-packages/sos/cleaner/preppers/__pycache__/usernames.cpython-310.pyc
o
C��g
� @ s d dl mZ G dd� de�ZdS )� )�
SoSPrepperc @ s$ e Zd ZdZdZg d�Zdd� ZdS )�UsernamePrepperz�
This prepper is used to source usernames from various `last` output content
as well as a couple select files. This prepper will also leverage the
--usernames option.
�username)�core�nobody� nfsnobody�shutdown�stack�reboot�rootztimeout:�ubuntur �wtmpc
C s� t � }g d�}|D ]W}|�|�}|sq |�� D ]H}z=|�� d �� }d|v r;t|�� d �dkr9|�� d �� }nW q|rU|| jvrU|�|� d|v rU|�|�d�d � W q ty_ Y qw q | j j
D ]}|| jvrq|�|� qe|S )N) z(sos_commands/login/lastlog_-u_1000-60000z)sos_commands/login/lastlog_-u_60001-65536z.sos_commands/login/lastlog_-u_65537-4294967295zsos_commands/login/lastlog2zsos_commands/login/lastzsos_commands/login/last_-Fzsos_commands/login/lsloginszetc/cron.allowz
etc/cron.denyr �lsloginsi� � �\���)�set�get_file_content�
splitlines�split�lower�int� skip_list�add� Exception�opts� usernames) �self�archive�items�_files�_file�content�line�user�opt_user� r&