Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Please help me. My root password is not working. I was trying to change the password for another user, and i think i accidentally changed the root password. in grub, i added "single" to the end or the kernel argument line, and got root access that way. After that, i tried to change the password as root, but it will not let me. i get a "Token manipulation error". How can i change the password? Thank You.
Since in single mode, you are the root user, you can zero out the root password, then reboot normally. Edit out the characters between the first two colons in the /etc/shadow file's root record.
After you boot up again, you can log in without a password and use the "passwd" program to set a new password.
Yes. thats exactly what i did. right now im running w/o a root password. i booted up fully and logged in fine w/o a password, but i still cannot change the password. i get the same problem, "passwd: Authentication Failure"
Distribution: Distribution: RHEL 5 with Pieces of this and that.
Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700
Rep:
Did not mention distro you were using. I am guessing Pam is enabled and this is stopping you from using the passwd command. I am not sure but if logged in as root and not needing a password then I think you can modify /etc/pamd.passwd file if it exist. In it at the top ad the line.
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.