How to disable GNOME keyring?

I want to disable GNOME keyring globally on my machine. So I deleted the lines

auth    optional        pam_gnome_keyring.so
session optional        pam_gnome_keyring.so auto_start

in /etc/pam.d/gdm. It seems to me that this has no effect. When I lock in the syslog writes

Aug 24 18:37:03 foobar gnome-screensaver-dialog: gkr-pam: unlocked login keyring

and another user sees a menu window where he hs to enter his credentials. So what is the correct way to disable keyring for every user on that machine?


I think you just disabled the auto-unlock. To disable it completely, I suppose you could uninstall it. If that makes the package manager unhappy, you could also sudo chmod -x /usr/bin/gnome-keyring


Try this: System ⇒ Preferences ⇒ Startup Applications and uncheck gnome-keyring-daemon.


For Gnome 3 (ubuntu 17.10 and later):

  • ubuntu/windows key →
  • Startup Applications
  • uncheck/remove SSH Key Agent/GNOME Keyring: SSH Agent