I changed a lot of linux machines with one command(run as root):
passwd <<EOF !@#$!QAZ@WSX !@#$!QAZ@WSX EOF
when I logout and tried to login again, it told me that the password was wrong!!!!
I know the problem's with those special characters. Can anyone help me with it? what's the real new password applied to the system when I issue that? I don't want to restore those machines one-by-one manually.....
You have to boot in a single user mode by appending 1
to the kernel string in the grub menu or lilo and then change your password for root. There is no other way to fix it unless you have the ssh key that is listed in /root/.ssh/authorised_keys and your sshd allows connections for root.
Though try this:
!@#QAZ@WSX
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.