| 成功 | su[N]: pam_unix(su:session): session opened for user root by alice(uid=1000) |
|---|---|
| 失败 | FAILED su for root by alice |
检索
检索
grep -E 'su\[|FAILED su' /var/log/auth.log | tail -30成功后紧随其后的命令行为需要 auditd 或 shell 历史补全。
su 的会话开启与失败记录在认证日志中,包含源用户、目标用户与 UID;非运维习惯的 su root 是提权链条中的关键节点。
| 成功 | su[N]: pam_unix(su:session): session opened for user root by alice(uid=1000) |
|---|---|
| 失败 | FAILED su for root by alice |
grep -E 'su\[|FAILED su' /var/log/auth.log | tail -30