You are not logged in.

#1 2008-05-11 11:46:02

monotiz
Member
Registered: 2007-10-20
Posts: 134

How to unlock keyring in Slim login session?

Hi,
I use slim to login in openbox WM.
I added nm-applet in autostart file of openbox.

When i logged, nm-applet want the password to unlock keyring.

It's possibile to disable it?

Thanks.

Offline

#2 2008-05-11 14:35:21

Milky Way
Member
Registered: 2007-12-16
Posts: 6

Re: How to unlock keyring in Slim login session?

For the gnome-keyring this might help you:

http://bbs.archlinux.org/viewtopic.php?id=40553

Offline

#3 2008-05-11 16:05:22

monotiz
Member
Registered: 2007-10-20
Posts: 134

Re: How to unlock keyring in Slim login session?

Milky Way wrote:

For the gnome-keyring this might help you:

http://bbs.archlinux.org/viewtopic.php?id=40553

I use slim, not gdm.

I try to create a pam.d/slim file but I don't solve...

Offline

#4 2008-05-11 17:56:14

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: How to unlock keyring in Slim login session?

Slim does not work with PAM, GDM does...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2008-05-11 21:30:53

monotiz
Member
Registered: 2007-10-20
Posts: 134

Re: How to unlock keyring in Slim login session?

B wrote:

Slim does not work with PAM, GDM does...

I have found slim_pam in aur...
http://aur.archlinux.org/packages.php?ID=16225

Offline

#6 2008-05-11 22:00:43

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: How to unlock keyring in Slim login session?

For a moment I thought it was indeed a PAM module, but it seems to be a buildscript for SLiM, with PAM enabled. Would be very nice to see if it works.A bit strange it doesn't seem to install any PAM module though?

Last edited by B (2008-05-11 22:03:45)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#7 2008-05-12 08:49:04

zodmaner
Member
Registered: 2007-07-11
Posts: 653

Re: How to unlock keyring in Slim login session?

It seems that since 1.3.0, SLiM have PAM support.

From SLiM INSTALL file:

1. to build and install the program:
- edit the Makefile to adjust libraries and paths to your OS (if needed)
- make
     or
- make USE_PAM=1 to enable PAM support
- make install

After some additional searching, I have also found what appears to be PAM configuration file for SLiM.

From the link:

############################################################ begin /etc/pam.d/slim

#
# The PAM configuration file for the SLiM graphical login manager
#

# Disallows other than root logins when /etc/nologin exists
# (Replaces the `NOLOGINS_FILE' option from login.defs)
auth       requisite  pam_nologin.so

# This module parses environment configuration file(s)
# and also allows you to use an extended config
# file /etc/security/pam_env.conf.
#
# parsing /etc/environment needs "readenv=1"
session       required   pam_env.so readenv=1
# locale variables are also kept into /etc/default/locale in etch
# reading this file *in addition to /etc/environment* does not hurt
session       required   pam_env.so readenv=1 envfile=/etc/default/locale

# Standard Un*x authentication.
@include common-auth

# This allows certain extra groups to be granted to a user
# based on things like time of day, tty, service, and user.
# Please edit /etc/security/group.conf to fit your needs
# (Replaces the `CONSOLE_GROUPS' option in login.defs)
auth       optional   pam_group.so

# Uncomment and edit /etc/security/time.conf if you need to set
# time restrainst on logins.
# (Replaces the `PORTTIME_CHECKS_ENAB' option from login.defs
# as well as /etc/porttime)
# account    requisite  pam_time.so

# Uncomment and edit /etc/security/access.conf if you need to
# set access limits.
# (Replaces /etc/login.access file)
# account  required       pam_access.so

# Sets up user limits according to /etc/security/limits.conf
# (Replaces the use of /etc/limits in old login)
session    required   pam_limits.so

# SELinux needs to intervene at login time to ensure that the process
# starts in the proper default security context.
# Uncomment the following line to enable SELinux
# session required pam_selinux.so multiple

# Standard Un*x account and session
@include common-account
@include common-session
@include common-password

##################################################### end of /etc/pam.d/slim

I still haven't try it out though. Maybe someone who is more familiar with SLiM and PAM could take a look at this?

Last edited by zodmaner (2008-05-12 08:56:33)


Memento mori

Offline

#8 2008-05-12 09:48:39

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

Ohhh....  I want!

I am busy today but I have bookmarked this thread and will try tomorrow night after poker.

Offline

#9 2008-05-12 10:40:20

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

Couldn't resist so I am trying this out now!

B wrote:

For a moment I thought it was indeed a PAM module, but it seems to be a buildscript for SLiM, with PAM enabled. Would be very nice to see if it works.A bit strange it doesn't seem to install any PAM module though?

Naughty packager....  That is just the slim package with a extra compile option which is not allowed in AUR.  If we can get a working /etc/pam.d/slim setup then I will get it added to that package.  Otherwise, it will have to go.


Edit: here goes a discussion about potentially including a pam conf file in slim but it probably never happened...

Edit 2:  the link....  https://lists.berlios.de/pipermail/slim … 00045.html

Edit 3: Any idea what this does in the gentoo ebuild?

pamd_mimic_system slim auth account password session

Edit 4: http://wiki.archlinux.org/index.php/Thinkfinger#SLiM  Go Arch wiki!

Enough research, I am going to try this!

Edit 5:  I lied, more research...  this is the pam.d/slim file I decided on.  Shamelessly stolen from Fedora.

#%PAM-1.0
auth       required    pam_env.so
auth       include    system-auth
account    required    pam_nologin.so
account    include    system-auth
password   include    system-auth
session    optional    pam_keyinit.so force revoke
session    include    system-auth
session    required    pam_loginuid.so
session    optional    pam_console.so

Edit 6: What is the most edits ever made to a post big_smile

Edit 7: man that slim_pam package is bad. It does not even include pam as a depend...

Edit 8: Ok, I tried this out.  Installed the "slim_pam" package, used the above /etc/pam.d/slim file with the added lines as suggested in http://bbs.archlinux.org/viewtopic.php?id=40553 . Still got asked my password for gnome keyring with nm-applet on login...  More research needed.

Last edited by Allan (2008-05-12 11:42:52)

Offline

#10 2008-05-12 11:46:33

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: How to unlock keyring in Slim login session?

Did you get it to work? tongue


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#11 2008-05-12 11:55:51

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

No, and now I have to give up for the day and do the work I originally had planned for the evening.

Offline

#12 2008-05-12 15:45:24

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

Just a further not to confirm that auto-login to gnome-keyring does work in XFCE if you use gdm.  I just had a feeling that it may be an XFCE issue and had to check...

Edit:  Argh!  I am getting no where and I have run out of ideas.  I am beginning to this slim is just broken with PAM.

Last edited by Allan (2008-05-12 16:15:15)

Offline

#13 2008-05-13 01:55:02

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

Allan wrote:

I am beginning to this slim is just broken with PAM.

Of Course I meant PAM is broken in slim...

And maybe it is:
https://developer.berlios.de/bugs/?func … up_id=2663

Offline

#14 2008-05-13 11:03:57

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

I tried compiling slim from svn but that didn't help.  So I am officially giving up on this for the time being...

Offline

#15 2008-05-26 15:24:20

cdemoulins
Member
From: Paris
Registered: 2008-04-06
Posts: 7

Re: How to unlock keyring in Slim login session?

Hi, what do you want i do for the package slim-pam ?
I can add your pam file but if pam doesn't work correctly ...

I delete the package ? Personally i use gdm now.

Offline

#16 2008-05-26 16:57:44

Megamixman
Member
Registered: 2008-05-04
Posts: 73

Re: How to unlock keyring in Slim login session?

The AUR Package for Slim-Pam is broken
In the PKGBUILD file, it doesn't enable PAM support. You have to edit it and add a 1 after the =.
So

make USE_PAM= || return 1

becomes

make USE_PAM=1 || return 1

Also for pam file for autologin, use this:

#%PAM-1.0
auth            requisite       pam_nologin.so
auth            required        pam_env.so
auth            required        pam_unix.so
auth            optional        pam_gnome_keyring.so
account         required        pam_unix.so
session         required        pam_limits.so
session         required        pam_unix.so
session         optional        pam_gnome_keyring.so  auto_start
password        required        pam_unix.so

Offline

#17 2008-05-27 08:21:37

cdemoulins
Member
From: Paris
Registered: 2008-04-06
Posts: 7

Re: How to unlock keyring in Slim login session?

I update the package.

Offline

#18 2008-05-27 15:49:09

Bonzodog
Member
From: Leicester, UK
Registered: 2008-02-14
Posts: 106

Re: How to unlock keyring in Slim login session?

Personally, I would recommend using wicd over nm-applet. I find it a seriously better wireless manager.

Last edited by Bonzodog (2008-05-27 15:49:22)

Offline

#19 2008-05-27 16:22:47

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: How to unlock keyring in Slim login session?

Did anyone test SLiM with the new PKGBUILD & PAM file? Would be very nice to see if it works (and I'm too lazy atm tongue).


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#20 2008-05-27 18:56:22

cdemoulins
Member
From: Paris
Registered: 2008-04-06
Posts: 7

Re: How to unlock keyring in Slim login session?

Bonzodog wrote:

Personally, I would recommend using wicd over nm-applet. I find it a seriously better wireless manager.

I use gajim who use gnome-keyring.

Offline

#21 2008-05-27 21:31:37

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819

Re: How to unlock keyring in Slim login session?

cdemoulins, I'm not sure how your statement is related to Bonzodog's... Gajim is an IM app...


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#22 2008-05-29 17:39:49

Megamixman
Member
Registered: 2008-05-04
Posts: 73

Re: How to unlock keyring in Slim login session?

I think he means that since he already has gnome-keyring running, for him it makes more sense to use something that is integrated into his existing applications, aka gnome-network-manager, over wicd.

Offline

#23 2010-02-11 15:15:11

Sharpeee
Member
From: Denmark
Registered: 2008-10-19
Posts: 59

Re: How to unlock keyring in Slim login session?

Did you guys figure it out? I have just managed to make it work, so if any of you are still interested, I can maybe help.

Offline

#24 2010-02-11 15:18:54

Allan
Supreme Leader
From: Brisbane, AU
Registered: 2007-06-09
Posts: 10,606
Website

Re: How to unlock keyring in Slim login session?

I thought it worked out of the box now.  If not, add the info to the wiki.

http://wiki.archlinux.org/index.php/For … Bumping.27

Closing.

Offline

Board footer

Powered by FluxBB