Check if my root password is a Certain Text
by blueray from LinuxQuestions.org on (#4ZWEZ)
I want to check if my root password is a certain text.
For example, I want to check if my root password is MyPWD123.
To put some context to this question, I want to write a script where I will check if my root password is lets say MyPWD!23. I want to run the script just before login and would like to immediately shut down my PC if the root password is not MyPWD123.
How can I do that?


For example, I want to check if my root password is MyPWD123.
To put some context to this question, I want to write a script where I will check if my root password is lets say MyPWD!23. I want to run the script just before login and would like to immediately shut down my PC if the root password is not MyPWD123.
How can I do that?