Skip to content

Commit e519ed5

Browse files
committed
doc: update documentation and comments
1 parent c5a2aab commit e519ed5

1 file changed

Lines changed: 5 additions & 13 deletions

File tree

hardening/Root Locker/root-locker

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,20 @@
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

1313
green="$(printf '\033[0;32m')"
1414
red="$(printf '\033[1;31m')"
1515
nc="$(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
2826
fi
2927

3028

31-
#### End of [ Prepping ]
32-
########################################################################################
33-
#### [ Main ]
29+
####[ Main ]############################################################################
3430

3531

3632
read -rp "We will now disable the root account. Press [Enter] to continue."
@@ -43,7 +39,3 @@ passwd -dl root || {
4339
}
4440

4541
echo -e "\n${green}The root account has been locked${nc}"
46-
47-
48-
#### End of [ Main ]
49-
########################################################################################

0 commit comments

Comments
 (0)