user_deleted etc

main
vitrinekast 8 months ago
parent fbe9de92e7
commit d731f2b67e

@ -223,68 +223,57 @@ user_deleted : {{ user_deleted }}
<mark> <mark>
This command shows whether groups were added today. This command shows whether groups were added today.
</mark> </mark>
<ul>
{% for item in groups_created %} {{ log_output(groups_created) }}
<li>{{ item }}</li>
<mark> <mark>
These new working groups were added today. They might be used for creating new projects, maintaining or These new working groups were added today. They might be used for creating new projects, maintaining or
managing parts of the server, or for organizational purposes. managing parts of the server, or for organizational purposes.
</mark> </mark>
<b>check dis</b>
{% endfor %}
</ul>
{% endif %} {% endif %}
{% if groups_removed|length > 0 %}
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p>
<mark>
This command shows whether groups were removed today.
</mark>
{% if groups_created|length < 0 %} {{ log_output(groups_removed) }}
<mark>No groups were added today.</mark>
<mark>
These new groups were removed today. Most likely they were no longer relevant or purposeful.
</mark>
{% endif %} {% endif %}
<b>For some reason this if statement is not working, i didn't apply it to the next 4 categories because i
wanted to check it works first</b>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=grouPremove -r --output-fields=MES</p> {% if user_modified|length > 0 %}
<mark>
This command shows whether groups were removed today.
</mark>
<ul> <p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
{% for item in groups_removed %} <mark>
<li>{{ item }}</li> This command shows whether users were modified today.
<mark> </mark>
These new groups were removed today. Most likely they were no longer relevant or purposeful.
</mark> {{ log_output(user_modified) }}
<b>check dis</b>
{% endfor %}
</ul>
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=usermod -r</p>
<mark>
This command shows whether users were modified today.
</mark>
<ul>
{% for item in user_modified %}
<li>{{ item }}</li>
<mark> <mark>
These users have been modified. Probably because someone changed their password, keys, or other These users have been modified. Probably because someone changed their password, keys, or other
settings, or given new permissions. settings, or given new permissions.
</mark> </mark>
<b>check dis</b>
{% endfor %}
</ul>
{% endif %}
{% if user_deleted|length > 0 %}
<p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p> <p><em>tldr@chopchop:~ $</em>sudo journalctl _COMM=userdel -r</p>
<mark> <mark>
This command shows whether users were removed today. This command shows whether users were removed today.
</mark> </mark>
<ul>
{% for item in user_deleted %} {{ log_output(user_deleted) }}
<li>{{ item }}</li>
<mark> <mark>
It seems that a user was removed. This doesn't happen too often... It could be that they have done It seems that a user was removed. This doesn't happen too often... It could be that they have done
something to lose the trust of the community. The circle of trust shrunk ever so slightly. something to lose the trust of the community. The circle of trust shrunk ever so slightly.
</mark> </mark>
<b>check dis</b>
{% endfor %} {% endif %}
</ul>
<p><em>tldr@chopchop:~ $</em>sudo service --status-all</p> <p><em>tldr@chopchop:~ $</em>sudo service --status-all</p>
<mark> <mark>
@ -292,21 +281,12 @@ user_deleted : {{ user_deleted }}
on the server. They are marked with an [+]. on the server. They are marked with an [+].
The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request. The rest, marked with a [-], are idle, not running, or waiting to be activating upon sending a request.
</mark> </mark>
<ul> {{ log_output(list_active_services) }}
{% for item in list_active_services %}
<li>{{ item }}</li>
{% endfor %}
</ul>
<p><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u <p><em>tldr@chopchop:~ $</em>sudo journalctl -S today -u kitchen-stove.service -u
kitchen-bin.service -u kitchen-fridge.service -r -n</p> kitchen-bin.service -u kitchen-fridge.service -r -n</p>
{% if kitchen_services|length > 0 %}
<ul> {{ log_output(kitchen_services) }}
{% for item in kitchen_services %}
<li>{{ item }}</li>
{% endfor %}
</ul>
{% endif %}
<script type="text/javascript" src="script.js"></script> <script type="text/javascript" src="script.js"></script>
</body> </body>

Loading…
Cancel
Save