This project contains five shell scripts written as part of a Linux System Administration assignment. Each script solves a real-world system task like user management, kernel checking, login tracking, and more.
- Extracts all usernames from the
/etc/passwdfile. - Saves the output to
userlist.txt.
- Displays the 5 most recent system reboots.
- Uses the
last rebootcommand. - Output saved to
boot_history_report.txt.
- Shows the last 10 failed SSH login attempts from system logs.
- Works with
/var/log/auth.logor/var/log/secure.
- Compares the current running kernel version with the latest available.
- Supports Debian, RHEL, and Arch Linux.
- Logs the result to
/var/log/kernel_version_check.log.
- Calculates total login time (in minutes) for each user.
- Parses
lastcommand output. - Saves the summary to
weekly_login_report.txt.
For each script:
chmod +x script_name.sh
./script_name.sh