linux:accueil

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
linux:accueil [2025/01/09 20:08] – [X11] add how to disable screensaver phswlinux:accueil [2026/01/05 20:35] (Version actuelle) – add how to test if keyring is locked phsw
Ligne 117: Ligne 117:
 <code bash> <code bash>
 getent passwd getent passwd
 +</code>
 +
 +Lister tous les membres appartenant à un groupe ([[https://linuxhandbook.com/list-users-in-group-linux/|source]]) :
 +<code bash>
 +getent group $group
 </code> </code>
  
Ligne 492: Ligne 497:
  
 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'')
 +
  
  • linux/accueil.1736449714.txt.gz
  • Dernière modification : 2025/01/09 20:08
  • de phsw