tech:pb_sudo_-_lenteur_sudo
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:pb_sudo_-_lenteur_sudo [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:pb_sudo_-_lenteur_sudo [2025/04/24 14:44] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| {{tag> | {{tag> | ||
| - | = Pb sudo - Lenteur sudo | + | # Pb sudo - Lenteur sudo |
| Voir | Voir | ||
| * La machine doit pouvoir pinguer son hostname | * La machine doit pouvoir pinguer son hostname | ||
| - | ** '' | + | |
| - | ** '' | + | * '' |
| - | ** '' | + | * '' |
| - | ** '' | + | * '' |
| * Connexion LDAP / Service sssd - Si sssd stop est-ce OK ? | * Connexion LDAP / Service sssd - Si sssd stop est-ce OK ? | ||
| - | ** '' | + | |
| - | ** '' | + | * '' |
| * Les commandes suivantes fonctionnent-elles ? Si non voir Err timeout org.freedesktop.login1 | * Les commandes suivantes fonctionnent-elles ? Si non voir Err timeout org.freedesktop.login1 | ||
| - | ** '' | + | |
| - | ** '' | + | * '' |
| - | == Lenteur sudo - Err timeout org.freedesktop.login1 | + | ## Lenteur sudo - Err timeout org.freedesktop.login1 |
| '' | '' | ||
| - | <code -> | + | ~~~ |
| # strace -f sudo su -c ls | # strace -f sudo su -c ls | ||
| recvmsg(4, {msg_namelen=0}, | recvmsg(4, {msg_namelen=0}, | ||
| Ligne 36: | Ligne 37: | ||
| ^Cstrace: Process 13215 detached | ^Cstrace: Process 13215 detached | ||
| < | < | ||
| - | </ | + | ~~~ |
| - | <code -> | + | ~~~ |
| # journalctl -f | # journalctl -f | ||
| Jan 16 10:56:42 SRV_01 dbus[7464]: [system] Failed to activate service ' | Jan 16 10:56:42 SRV_01 dbus[7464]: [system] Failed to activate service ' | ||
| Ligne 50: | Ligne 51: | ||
| Jan 16 10:57:07 SRV_01 su[12341]: pam_unix(su: | Jan 16 10:57:07 SRV_01 su[12341]: pam_unix(su: | ||
| Jan 16 10:57:07 SRV_01 sudo[10716]: | Jan 16 10:57:07 SRV_01 sudo[10716]: | ||
| - | </ | + | ~~~ |
| - | === Solution | + | ### Solution |
| - | < | + | ~~~bash |
| # systemctl daemon-reexec | # systemctl daemon-reexec | ||
| systemctl restart systemd-logind | systemctl restart systemd-logind | ||
| - | </ | + | ~~~ |
| - | == Cleanup abandoned sessions from systemd | + | ## Cleanup abandoned sessions from systemd |
| ** A tester ** | ** A tester ** | ||
| Ligne 67: | Ligne 68: | ||
| Delete session files | Delete session files | ||
| - | < | + | ~~~bash |
| find / | find / | ||
| - | </ | + | ~~~ |
| Delete session directories | Delete session directories | ||
| - | < | + | ~~~bash |
| rm -rf / | rm -rf / | ||
| - | </ | + | ~~~ |
| Remove the abandoned sessions | Remove the abandoned sessions | ||
| - | < | + | ~~~bash |
| systemctl | grep " | systemctl | grep " | ||
| - | </ | + | ~~~ |
| - | == Autre | ||
| - | < | + | ## Autre |
| + | |||
| + | ~~~bash | ||
| systemctl list-units --state=abandoned -t scope --no-legend | systemctl list-units --state=abandoned -t scope --no-legend | ||
| - | </ | + | ~~~ |
tech/pb_sudo_-_lenteur_sudo.1742825205.txt.gz · Dernière modification : de 127.0.0.1
