You are not logged in.

#1 2021-03-20 18:09:00

areuz
Member
Registered: 2016-09-16
Posts: 60

Login keyring doesn't get unlocked automatically on login

I've been putting off posting about this issue for months, cause I wanted to find a fix on my own, but no shot...

When I was setting up my gnome-keyring, I've manually created a keyring (via Seahorse) called "login" and gave it the same password as my user. All of the apps have no troubles accessing it and creating entries.
I don't use any login manager, just plain old terminal login. I ofc also don't have an automatic login setup, I know that wouldn't work for technical reasons.

Any comments are welcome, this very well may be an issue with my setup as I've got 2 PCs with this same issue, and their dotfiles are pretty much 1:1

This is my ~/.xinitrc:

$ cat ~/.xinitrc
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
        for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
                [ -x "$f" ] && . "$f"
        done
        unset f
fi

# Start gnome-keyring daemon with extra components
eval $(/usr/bin/gnome-keyring-daemon --start -c pkcs11,secrets,ssh)
export SSH_AUTH_SOCK

xset -dpms
xset s off

exec i3

This is the /etc/pam.d/login

$ cat /etc/pam.d/login
#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       optional     pam_gnome_keyring.so
auth       include      system-local-login
account    include      system-local-login
session    include      system-local-login
session    optional     pam_gnome_keyring.so auto_start

And this is my /etc/pam.d/passwd

$ cat /etc/pam.d/passwd
#%PAM-1.0
#password	required	pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
#password	required	pam_unix.so sha512 shadow use_authtok
password	required	pam_unix.so sha512 shadow nullok
password	optional	pam_gnome_keyring.so

Last edited by areuz (2021-03-20 18:17:37)


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

#2 2021-03-27 14:50:25

areuz
Member
Registered: 2016-09-16
Posts: 60

Re: Login keyring doesn't get unlocked automatically on login

Well, from the lack of replies, I guess It's forever going to stay a mystery..


If I'm not a bush, I'm not no one.
Dotfiles Git

Offline

Board footer

Powered by FluxBB