English
Ask Your Question
2

How do I unlock gnome-keyring with KDM automatically?

asked 2014-01-23 13:43:47 +0000

I have installed gnome-keyring-pam, and the password of the keyring is the same as the login, but it doesn't unlock itself when I login in KDE with KDM.

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
3

answered 2014-01-23 16:51:55 +0000

tomspur gravatar image

updated 2014-01-28 08:33:35 +0000

It seems you also need to modify /etc/pam.d/kde, like the following (from [1]):

  1. Behind the line auth include system-login you need to add:

    auth optional pam_gnome_keyring.so

  2. Behind the line with session include system-login, you need to add:

    session optional pam_gnome_keyring.so auto_start

[1] https://wiki.archlinux.org/index.php/KDM#KDM_and_Gnome-keyring

edit flag offensive delete link more

Comments

Please elaborate. Do not just add a link. This link (maybe in future) will be lost. Add a quote or a more complete answer would be better.

NikTh ( 2014-01-24 11:03:01 +0000 )edit
1

Done and will do so in the future! :)

tomspur ( 2014-01-28 08:34:30 +0000 )edit
1

answered 2014-02-20 14:11:39 +0000

Finally I got it working. This is my setup in /etc/pam.d/kdm

#%PAM-1.0
auth     [success=done ignore=ignore default=bad] pam_selinux_permit.so
auth       required    pam_env.so
auth       substack    system-auth
auth       optional    pam_gnome_keyring.so try_first_pass
auth       include     postlogin
account    required    pam_nologin.so
account    include     system-auth
password   include     system-auth
session    required    pam_selinux.so close
session    required    pam_loginuid.so
session    optional    pam_console.so
-session    optional    pam_ck_connector.so
session    required    pam_selinux.so open
session    optional    pam_keyinit.so force revoke
session    required    pam_namespace.so
session    optional    pam_gnome_keyring.so auto_start
session    include     system-auth
session    include     postlogin
edit flag offensive delete link more
0

answered 2014-01-23 22:46:26 +0000

deusdara gravatar image

Hi

How to unlock gnome keyring automatically

http://harpreet.in/blog/2009/11/30/how-to-unlock-gnome-keyring-automatically/

Please pay attention for that:

for KDM

sudo vi /etc/pam.d/kdm

Add the following lines

auth optional pam_gnome_keyring.so try_first_pass session optional pam_gnome_keyring.so auto_start

The order in which these lines are inserted is important. So here is a working copy of the file:

edit flag offensive delete link more

Comments

vi ? hmm, A newbie will find it a bit difficult. Better to use a simpler editor (a graphical maybe), or nano (I know it is not installed by default).

NikTh ( 2014-01-24 11:04:24 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

Follow
1 follower

Stats

Asked: 2014-01-23 13:43:47 +0000

Seen: 2,683 times

Last updated: Feb 20 '14