File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22#
33# Locks the root account and erases it's current password.
44#
5- # Version: v1.0.5
5+ # Version: v1.0.6
66# License: MIT License
7- # Copyright (c) 2020-2023 Hunter T. (StrangeRanger)
7+ # Copyright (c) 2020-2024 Hunter T. (StrangeRanger)
88#
99# #######################################################################################
10- # ### [ Variables ]
10+ # ###[ Script Wide Variables ]###########################################################
1111
1212
1313green=" $( printf ' \033[0;32m' ) "
1414red=" $( printf ' \033[1;31m' ) "
1515nc=" $( printf ' \033[0m' ) "
1616
1717
18- # #### End of [ Variables ]
19- # #######################################################################################
20- # ### [ Prepping ]
18+ # ###[ Prepping ]########################################################################
2119
2220
2321# # Check if this script was executed with root privilege.
@@ -28,9 +26,7 @@ if [[ $EUID != 0 ]]; then
2826fi
2927
3028
31- # ### End of [ Prepping ]
32- # #######################################################################################
33- # ### [ Main ]
29+ # ###[ Main ]############################################################################
3430
3531
3632read -rp " We will now disable the root account. Press [Enter] to continue."
@@ -43,7 +39,3 @@ passwd -dl root || {
4339}
4440
4541echo -e " \n${green} The root account has been locked${nc} "
46-
47-
48- # ### End of [ Main ]
49- # #######################################################################################
You can’t perform that action at this time.
0 commit comments