mirror of
https://github.com/MiSTer-devel/Scripts_MiSTer.git
synced 2026-05-17 03:04:34 +00:00
Version 1.2.6
Refined the check for standard root password.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.2.6 - 2019-05-11 - Refined the check for standard root password.
|
||||
# Version 1.2.5 - 2019-05-02 - Code review by makigumo, now the script runs from any terminal, not only SSH, thank you very much.
|
||||
# Version 1.2.4 - 2019-04-08 - Refined the check for standard root password.
|
||||
# Version 1.2.3 - 2019-04-04 - Refined the check for standard root password.
|
||||
@@ -52,7 +53,7 @@ if (( $EUID != 0 )); then
|
||||
exit 3
|
||||
fi
|
||||
|
||||
if cat /etc/shadow | grep -o "^root:[^:]*" | md5sum | grep -q "\(^9104842aa3318a956e51a081d052d2ee \)\|\(^18de777543175ec29c71ebf177590199 \)\|\(^b136a9bff6f6f09feb2f30e12be37e22 \)\|\(^beca3beae21066c49e2f11d13fe68342 \)"
|
||||
if cat /etc/shadow | grep -o "^root:[^:]*" | md5sum | grep -q "\(^9104842aa3318a956e51a081d052d2ee \)\|\(^18de777543175ec29c71ebf177590199 \)\|\(^b136a9bff6f6f09feb2f30e12be37e22 \)\|\(^beca3beae21066c49e2f11d13fe68342 \)\|\(^8fe03c31a7fcc77d0af7177bd1f84825 \)"
|
||||
then
|
||||
echo "root password is the original one from"
|
||||
echo "the SD-Installer; it should be changed."
|
||||
|
||||
Reference in New Issue
Block a user