大网数据广告活动
服务器运维问答

su: authentication failure (password correct, setup worked before, nothing changed)

· 52CE 我爱测

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; everyt…

问题原文

原帖链接 · ᴍᴇʜᴏᴠ · 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.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-01-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。