UNLIMITED

Linux Format

Answers

Q Beyond LFS

You did an excellent couple of articles on Linux From Scratch (LXF286 and LXF287). It is a great project. Very educational. However I came a cropper when I progressed to Beyond Linux From Scratch. I cannot get Gnome Keyring to load without asking for a password every time (Evolution is using this). I have this line in my .config/openbox/environment file to start it:

eval $(gnome-keyring-daemon)

From extensive ‘Quacking’, I have tried all sorts of tricks with PAM settings and so on. I am using the same password on the keyring as my login password.

Francis Greaves

A In order for Gnome Keyring to unlock automatically, it has to be started by PAM. First you have to make sure PAM is built with the correct options, which are --enable-pam and --with-pamdir=/lib64/security. The directory passed to the latter option is the one containing the PAM libraries, such as pam_unix.so. Then you need to configure PAM accordingly. Edit /etc/pam.d/gdm to add

auth optional pam_gnome_keyring.so to the end of the auth block and

session optional pam_gnome_keyring.so auto_start

to the end of the session block. In the file /etc/pam.d/gdm, add:

auth optional pam_gnome_keyring.so and:

session optional pam_gnome_keyring.so auto_start

to the auth and session blocks respectively. Finally, add:

password optional pam_gnome_keyring. so

to the password block of /etc/pam.d/ passwd. This starts the Gnome Keyring daemon and opens a keyring called login. If the keyring does not exist, it is created, with the same password as your user. When you open

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Intel Patch For Outdated Microcode?
Intel engineer Dave Hansen has sparked a “Microcode Revision Discussion” regarding a proposed Linux patch on the kernel mailing list. This new feature would report outdated microcode through the existing sysfs vulnerabilities reporting system. Specif
Linux Format1 min read
Apple Maps Works In Linux
In July, Apple announced that its Maps on the web feature was now in public beta. For the first time, it could be accessed from non-Apple devices. Initially, Windows users could access Maps using Edge, while Firefox support was added in August. This
Linux Format3 min read
Stay Alert With System Email Warnings!
Within Linux, lots of jobs send output to various log files and emails to users. Thing is, forwarding this important information to the appropriate users is more complicated than needed. It used to involve setting up sendmail servers and all sorts of

Related Books & Audiobooks