Article 4ZWEZ Check if my root password is a Certain Text

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?latest?d=yIl2AUoC8zA latest?i=2b2GV4vcmf0:mdUsn9YVi9U:F7zBnMy latest?i=2b2GV4vcmf0:mdUsn9YVi9U:V_sGLiP latest?d=qj6IDK7rITs latest?i=2b2GV4vcmf0:mdUsn9YVi9U:gIN9vFw2b2GV4vcmf0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments