问题原文
原帖链接 · ᴍᴇʜᴏᴠ · CC BY-SA 4.0
Most of the issues I found are related to new installs, root password being disabled by default, or things falling apart after some changes. None of that applies here: in my case nothing was changed, nothing new installed; everything was working before just fine.
Tried: su, su -, su root, su - root - all return su: Authentication failure. Even changed the password to the same one using the VPS control panel, nothing.
This happens on a Debian 10 ('Buster') VPS powered by Virtualizor.
已采纳解答
原帖链接 · ᴍᴇʜᴏᴠ · CC BY-SA 4.0
TL;DR: Mac OS? Restart Terminal.
I noticed something strange as I was trying to copy the console output to paste here: when I selected some text with my mouse, instead of actually selecting, it kept typing some gibberish into the console. So if it's adding extra characters when I mouse-select, it may as well be doing this when I paste my password, and that could be why it fails.
This may be due to the fact that my network failed and got disconnected a few minutes before the issue appeared.
I restarted the Terminal session (this is on Mac OS), tried again and it worked. Hope this helps some Googlers.
UPDATE Got the same issue again, except this time it behaved normal when mouse-selecting, but would still insert some random characters when I hit paste. Double-checked by pasting into the shell prompt (where it's visible) and sure enough, some random stuff was being added. Restarting terminal helped.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
