[SOLVED] Check if my root password is a Certain Text
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What problem are you trying to solve with that? If you want to have the machine shut down after a failed login attempt there are several ways to accomplish that.
What problem are you trying to solve with that? If you want to have the machine shut down after a failed login attempt there are several ways to accomplish that.
Sometimes people reset the root password using the boot menu. Even if someone reset the password they are not supposed to know my previous password. I just want to not let the user do anything if they reset with a different password.
I know there is encryption. I just want to use this as just another layer.
Distribution: Ubuntu based stuff for the most part
Posts: 1,172
Rep:
Why not just set a grub password to stop people from changing the boot settings?
You can also set the recovery grub option ask for a root password, so they need to know it to change it.
they will boot from usb.... If they really want to modify root pw. So you [would] need to disable that too. Using an encrypted volume (=which cannot be accessed without the password) will solve it permanently. But probably you need to reinstall the system to achieve it.
By the way, there is no script which can protect you, if they can reset the password without booting the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.