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 Format5 min read
Tips For Managing Docker Containers
Everyone knows how containers revolutionised application building and deployment. Using a E disposable stack of containers that make up an app that aren’t using the docker-compose command to manage the stack are missing a trick. It allows the shippin
Linux Format3 min readSecurity
ParrotOS
A security focused operating system that is well suited to the Raspberry Pi 4 2GB and upwards, but not Pi 5 for now. ParrotOS provides a plethora of security auditing tools for both red and blue team members. This is a great distro for learners and n
Linux Format2 min read
Automatic Tracking
TimeSlotTracker has activity monitoring and this includes an optional facility to take screenshots and T place them in a user-defined directory. However, this isn’t the type of intricate user monitoring that some of the other options offer. Idle dete

Related Books & Audiobooks