惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
Hugging Face - Blog
Hugging Face - Blog
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
Webroot Blog
Webroot Blog
S
Secure Thoughts
N
News and Events Feed by Topic
月光博客
月光博客
TaoSecurity Blog
TaoSecurity Blog
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
N
News | PayPal Newsroom
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
小众软件
小众软件
Recent Commits to openclaw:main
Recent Commits to openclaw:main
P
Privacy & Cybersecurity Law Blog
GbyAI
GbyAI
K
Kaspersky official blog
WordPress大学
WordPress大学
P
Proofpoint News Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 叶小钗
W
WeLiveSecurity
Jina AI
Jina AI
The Cloudflare Blog
Project Zero
Project Zero
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
L
LangChain Blog
Forbes - Security
Forbes - Security
PCI Perspectives
PCI Perspectives
Engineering at Meta
Engineering at Meta
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
博客园 - 【当耐特】
H
Heimdal Security Blog
A
About on SuperTechFans
Cisco Talos Blog
Cisco Talos Blog
T
Threat Research - Cisco Blogs
云风的 BLOG
云风的 BLOG
Spread Privacy
Spread Privacy
L
LINUX DO - 最新话题
L
Lohrmann on Cybersecurity
Last Week in AI
Last Week in AI
Google DeepMind News
Google DeepMind News
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
I
Intezer
Martin Fowler
Martin Fowler
S
Securelist
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint

阿豪运维笔记

DedeCMS后台部分功能打开空白如何排查修复 如何通过Navicat for MySQL导出Mysql数据库为SQL格式备份文件 如何通过Navicat for MySQL导入SQL备份文件 Win11系统如何通过CMD命令行窗口批量关闭相同进程 Win10系统如何通过CMD命令行窗口批量关闭相同进程 Win7系统如何通过CMD命令行窗口批量关闭相同进程 Win10系统中Windows 资源管理器是什么进程为啥重启下这个进程界面就正常了 Win7系统中explorer.exe是什么进程为啥重启下这个进程桌面显示就正常了 轻松搞定Windows系统自定义安装日期图文教程 Windows2025系统如何设置指定时间定时自动重启系统图文教程 Windows2022系统如何设置指定时间定时自动重启系统图文教程 Windows2019系统如何设置指定时间定时自动重启系统图文教程 Windows2016系统如何设置指定时间定时自动重启系统图文教程 Windows2012系统如何设置指定时间定时自动重启系统图文教程 OpenSUSE 16如何安装Linux Web可视化管理工具Cockpit Fedora 41如何安装Linux Web可视化管理工具Cockpit Fedora 40如何安装Linux Web可视化管理工具Cockpit Debian13如何安装Linux Web可视化管理工具Cockpit Debian12如何安装Linux Web可视化管理工具Cockpit Ubuntu24如何安装Linux Web可视化管理工具Cockpit Ubuntu22如何安装Linux Web可视化管理工具Cockpit Alibaba Cloud Linux 4如何安装Linux Web可视化管理工具Cockpit Alibaba Cloud Linux 3如何安装Linux Web可视化管理工具Cockpit Rocky Linux 10如何安装Linux Web可视化管理工具Cockpit
解决普通用户使用su命令切换root用户时提示su Authentication failure图文教程
阿豪运维笔记 · 2026-05-18 · via 阿豪运维笔记

Linux系统中创建的普通用户使用su命令切换root用户时提示su: Authentication failure错误

image.png

通过root用户执行cat /var/log/secure查看secure日志,显示如下错误信息。

May 14 17:19:08 localhost unix_chkpwd[1682]: check pass; user unknown

May 14 17:19:10 localhost unix_chkpwd[1683]: check pass; user unknown

May 14 17:19:10 localhost unix_chkpwd[1683]: password check failed for user (root)

May 14 17:19:10 localhost su: pam_unix(su:auth): authentication failure; logname=putong uid=1000 euid=1000 tty=pts/1 ruser=putong rhost=  user=root

May 14 17:19:10 localhost su: pam_succeed_if(su:auth): requirement "uid >= 1000" not met by user "root"

image.png

出现这个报错可能是因为/bin/su命令文件缺少s权限,导致普通用户无法使用su命令切换root用户

解决办法

1、使用root用户登录Linux系统

2、执行如下命令,查看/bin/su文件权限

ls -l /bin/su

返回结果如下所示,说明/bin/su命令文件缺少s权限

image.png

3、执行如下命令,为/bin/su文件添加s权限

chmod u+s /bin/su

4、重新在普通用户下使用su命令切换root用户正常可以切换登入成功