Root password: do certain characters "break" Linux?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Root password: do certain characters "break" Linux?
Hello. Please laugh, but do read.
In the first 3 weeks following my update to FC3, I have TWO TIMES had my root password be refused, and have, after some hair pulling (my own), had to do a full reinstall. It was a different password each time.
I have been using networked computers for about 12 years, and have not ever, not once forgotten a password.
Of course, at the time the root password is selected, it has to be re-entered for confirmation.
After the first full reinstall, I was suspicious, so I immediately rebooted the machine and was able to log back in using the root password. What I did not do was shut down, then start up, then log in.
Today, after the machine has been cold and dark for 3 days, I started it up, and . . . it refused my root password. It would be quite a coincidence for me to make the same mistake TWICE, especially when being cautious the second time.
In particular, I am suspicious that one or more characters I chose is "forbidden." I learned about this by "breaking" Mac OS X's utility called Open Firmware Password. I chose a password that started with ~, and kerboom!
I think that Linux will use the root password I chose after a reboot, but not after a power cycle. If this is true, someone probably knows why it would be so.
Here's the password `1@Am*9) That first character is the character to the left of the 1 on the top row of a standard qwerty keyboard, ASCII value 096 in decimal.
Is there documentation, virtual or actual, about permitted ASCII characters in the root password of FC3, or bark I up the wrong tree?
Well, I can't answer your question, but I can give you a tip: You can change the root password without knowing it without a reinstall! When lilo gives you the
Code:
boot:
prompt, type
Code:
linux single
and hit enter. After the next prompt comes, type
Code:
passwd root
and enter the new root password.
Note: This might not work on certain distros, but it works with redhat 9, which is almost identical to FC3. It is also very dangerous, make sure that no one can get physical acess to the computer. (except you )
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802
Rep:
Please don't forget that Linux, like all Unix-like OSes, is case dependant. That is, if you entered a password like ABC, then abc won't work.
Also, some Linuxes use different rules for passwords. Some use the old 8 character limitation. Others do not. Also, some characters are "illegal" in passwords, especially in one or another of the password "schemes".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.