Initial commit.

This commit is contained in:
2021-05-24 22:18:33 +03:00
commit e2954d55f4
3701 changed files with 330017 additions and 0 deletions

9
cron.monthly/psacct Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
echo -e "User stats\n"
/bin/ac -p
echo -e "root commands\n"
/bin/lastcomm root | /bin/awk '{print $1}' | /bin/sort | /bin/uniq -c | /bin/sort -nr | /bin/head
echo -e "User Logins\n"
/bin/last | /bin/awk '{print $1}' | /bin/sort | /bin/uniq -c | /bin/sort -nr | /bin/head
echo -e "Host Logins\n"
/bin/last | /bin/awk '{print $3}' | /bin/sort | /bin/uniq -c | /bin/sort -nr | /bin/head