- Beta testing - Flag all dev-testings to be completed - Add bugs - Add Roadmaps Script - Bumped the version to 0.9 - Aligned the logfile name with the name of the script - Restore Operation - Adopted the set_op_code method for determining successes - Restore Operations - took the remove-immutable flag code to revert_secure_authorized_key function - Restore Operation - removed redundant operations from revert_secure_authorized_key method - as script is never goes into an existing user's .ssh folder - so no need to care for existing files - Restore Operation - Call revert ssh key AFTER immutable file restoration has completed - reset_op_code after all restore function & in the beginning of error segment of each step - Bugfix - revert source list changes - Bugfix - restore fail2ban - Step 2 - removed checks for existing file - we never operate on existing users - so this is an useless check - File Log - since we do not check if the last operation's success before writing to logfile - changed the tense to -ing - Step 4 - added more file logs - Step 6 & 7 - Instead of checking if installation succeess - check if ufw/fail2ban is installed before processing - Step 7 - added more file logs - Step 8 - added more file logs
137 lines
3.7 KiB
Plaintext
137 lines
3.7 KiB
Plaintext
Step 1 Failure > expectation
|
|
- Delete user + delete home directory
|
|
- Exit
|
|
- Ubuntu 14
|
|
- Works as expected.
|
|
- Shows error & Revert status
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
- Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 2 Failure > expectation
|
|
- Delete user + delete home directory
|
|
- Exit
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 3 Failure > expectation
|
|
- Reset the attributes of "authorized_keys"
|
|
- Delete user + delete home directory
|
|
- Exit
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 4 Failure > expectation
|
|
- Restore backup files in /etc/apt folder and sub-folders
|
|
- Differs for each provider (Hetzner specially)
|
|
- Script continues
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 5 Failure > expectation
|
|
- Continue to Step 8
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 6 Failure > expectation
|
|
- Disable UFW
|
|
- Continue to next Step
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 7 Failure > expectation
|
|
- For 1st run of the script Restore /etc/fail2ban/jail.conf
|
|
- For 2nd run of the script restore /etc/fail2ban/jail.local
|
|
- Restore /etc/fail2ban/jail.d/defaults-debian.conf file if present
|
|
- Continue to next step
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
Step 8 Failure > expectation
|
|
- Display that something did not complete successfully
|
|
- Continue to next step
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected
|
|
|
|
|
|
Step 9 Failure > expectation
|
|
- Reset the attributes of "authorized_keys"
|
|
- Delete user + delete home directory
|
|
- [If opted] Restore backup files in /etc/apt folder and sub-folders
|
|
- Disable UFW
|
|
- For 1st run of the script Restore /etc/fail2ban/jail.conf
|
|
- For 2nd run of the script restore /etc/fail2ban/jail.local
|
|
- Restore /etc/fail2ban/jail.d/defaults-debian.conf file if present
|
|
- Restore the /etc/ssh/sshd_config file
|
|
- Exit
|
|
- Ubuntu 14
|
|
- Works as expected
|
|
- Ubuntu 16
|
|
- Works as expected.
|
|
- Ubuntu 18
|
|
- Works as expected.
|
|
- Debian 8
|
|
Works as expected
|
|
- Debian 9
|
|
- Works as expected |