#sudo
共 7 篇文章
解决 Linux 报错 sudo: timestamp too far in the future 系统时间修复指南
排查 Linux 执行 sudo 提示 timestamp too far in the future 警告,深入分析时钟漂移、CMOS 电池失效与 /var/db/sudo 时间戳重置。
解决 Linux 报错 user is not in the sudoers file 的排查指南
排查与解决 Linux 用户执行 sudo 提示 user is not in the sudoers file. This incident will be reported 的完整方案。
解决 Linux 报错 sudo must be owned by uid 0 权限损坏异常
分析 Linux 下 sudo 权限被误修改为普通用户或丢失 setuid 报 must be owned by uid 0 的 pkexec 与救援模式修复方案。
解决 Ansible 报错 sudo: a password is required become 权限提权失败修复
排查 Ansible 启用 become: yes 抛出 fatal: [node]: FAILED! => {"msg": "Missing sudo password"},分析 sudoers 免密配置。
解决 Linux 报错 sudo pam_authenticate 认证失败指南
分析 Linux 输入正确密码仍提示 sudo pam_authenticate: Authentication failure 的 PAM 规则损坏与安全锁死排查修复方案。
修改主机名后 sudo 报 unable to resolve host
修改主机名后,sudo 提示 unable to resolve host。比较当前名称、/etc/hostname 与 NSS 解析结果,确认旧 hosts 映射后备份修正,并检查 sudo、云主机配置覆盖和回退方法。
sudo -u postgres psql 报 command not found,切换用户登录后却能运行
sudo切换postgres身份找不到psql,检查secure_path与客户端完整路径,避免用sudo echo判断或取消全局路径策略。


