Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Pam + Gdm-autologin
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Sun Mar 30, 2008 10:16 am    Post subject: Pam + Gdm-autologin Reply with quote

Good Morning,

first of all, sorry if I'd post in the wrong section. I've found similar thread (related to pam and gdm) in this section, that's why I'm opening this thread here.

My problem is really simple: updating from mail-notification-4.1 to 5.0, my gnome-keyring was not open in the login no more.
I've searched a lot, so I found a lot of pages about it. I make a new keyring called "login", and changed these file:

/etc/pam.d/system-auth
Code:
#%PAM-1.0

auth       required     pam_env.so
[b]#add
auth optional pam_gnome_keyring.so[/b]
auth       sufficient   pam_unix.so try_first_pass likeauth nullok
auth       required     pam_deny.so

account    required     pam_unix.so

password   required     pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 try_first_pass retry=3
[b]#add
password optional pam_gnome_keyring.so[/b]
password   sufficient   pam_unix.so try_first_pass use_authtok nullok md5 shadow
password   required     pam_deny.so

session    required     pam_limits.so
[b]#add
session optional pam_gnome_keyring.so auto_start[/b]
session    required     pam_unix.so


/etc/pam.d/passwd
Code:
auth       include      system-auth
account    include      system-auth
password   include      system-auth
[b]#add
password        optional        pam_gnome_keyring.so[/b]


/etc/pam.d/gdm
Code:
#%PAM-1.0
auth       optional             pam_env.so
auth       include              system-auth
auth       required             pam_nologin.so
[b]#add
auth    optional        pam_gnome_keyring.so[/b]
account    include              system-auth
password   include              system-auth
session    include              system-auth
[b]#add
session optional        pam_gnome_keyring.so  auto_start[/b]


Ok, with these changes the login works and unlock the "login" keyring.
Now, I'd like to solve the real problem: I usually login throught gdm-autologin. That doesn's unlock the keyring. I found this
http://bbs.archlinux.org/viewtopic.php?id=43581
but I really don't like to put my password in a file.
Another attempt I did was to change /etc/pam.d/gdm-autologin with the same changes of /etc/pam.d/gdm. Now the situation is quite funny, the autologin works partially: a box popup asking the password for the default user (before gnome-session is started, I think). Typing the right password, everything goes well and I'm in my system logged in as my user with the keyring unlocked.

The strange thing is that before mail-notification-5 I was able to autologin not being asked the password, and the keyring was correctly unlocked 8O

Is there a way to solve this "terrible" problem? :P
How can I solve this autologin problem?

Thank you,
Michele
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
EvaSDK
Retired Dev
Retired Dev


Joined: 12 Jul 2003
Posts: 171
Location: France, Paris

PostPosted: Sun Mar 30, 2008 10:49 am    Post subject: Reply with quote

If you have paid attention to your upgrade, you would have seen that mail-notification now depends on gnome-keyring. The thing is that unless you set a null password to your init keyring or you write in somewhere to be fed to gnome-keyring on startup, you can't auto-unlock the keyring with autologin.
Back to top
View user's profile Send private message
MajinJoko
l33t
l33t


Joined: 20 Sep 2005
Posts: 639
Location: Bergamo / Verona

PostPosted: Sun Mar 30, 2008 11:42 am    Post subject: Reply with quote

Thank you, I missed the part

EvaSDK wrote:
you would have seen that mail-notification now depends on gnome-keyring.


Now, how I can set a null password to my "login" keyring? I mean, I tried to delete the old one, but when I create a new one, I'm not allowed to leave a blank password. :?:

Thank you again
_________________
[(.. watashi wa Urumi Kanzaki ga suki da ..)]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum