Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente | |
| linux:accueil [2025/03/05 12:12] – [Lister tous les utilisateurs d'un système] add how to list all members of a group phsw | linux:accueil [2026/01/05 20:35] (Version actuelle) – add how to test if keyring is locked phsw |
|---|
| |
| Après avoir modifié le fichier ''/etc/aliases'', il faut lancer la commande ''newaliases'' ([[https://unix.stackexchange.com/questions/65013/understanding-etc-aliases-and-what-it-does|source]]). | Après avoir modifié le fichier ''/etc/aliases'', il faut lancer la commande ''newaliases'' ([[https://unix.stackexchange.com/questions/65013/understanding-etc-aliases-and-what-it-does|source]]). |
| | |
| | |
| | |
| | ==== Interagir avec le trousseau de mots de passe ==== |
| | |
| | Savoir si le trousseau est déverrouillé : |
| | |
| | <code bash> |
| | # Quick exit if keyring is not yet unlocked (can happen just after boot) |
| | if [ "$(busctl --timeout=10 --user --json=short get-property org.freedesktop.secrets /org/freedesktop/secrets/collection/login org.freedesktop.Secret.Collection Locked | jq .data)" == "true" ] |
| | then |
| | exit 0 |
| | fi |
| | </code> |
| | * [[https://stackoverflow.com/questions/77962998/how-do-i-read-store-a-password-in-a-possibly-locked-gnome-keyring-manager-from-t|How do I read/store a password in a possibly locked gnome-keyring-manager from the shell without breaking existing gnome-keyring-manager clients?]] |
| | * [[https://unix.stackexchange.com/questions/453459/check-if-gnome-keyring-is-unlocked|Check if Gnome keyring is unlocked?]] |
| | * [[https://github.com/Intika-Linux-Apps/Gnome-Keyring-Tools]] (semble être caduc : cf ''libsecret-1-dev: /usr/share/doc/libsecret-1-dev/libsecret-1/migrating-libgnome-keyring.html'') |
| | |
| |