LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-22-2020, 04:25 AM   #1
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current, Ubuntu (servers)/Windows 11 (workstations)
Posts: 588

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
Issue with PAM


I have a lot of lines like this in the "secure" log file:
Quote:
... auth: PAM adding faulty module: /lib64/security/pam_gnome_keyring.so
... auth: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
... sshd[...]: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
... sshd[...]: PAM adding faulty module: /lib64/security/pam_gnome_keyring.so
... su[...]: PAM unable to dlopen(/lib64/security/pam_gnome_keyring.so): /lib64/security/pam_gnome_keyring.so: cannot open shared object file: No such file or directory
... su[...]: PAM adding faulty module: /lib64/security/pam_gnome_keyring.so
The system is a Slackware64-current server without a graphical interface and does not use ssh keys.
Code:
cd /etc/pam.d/
grep -i -n pam\_gnome\_keyring.so *
Quote:
system-auth:15:auth optional pam_gnome_keyring.so
system-auth:70:session optional pam_gnome_keyring.so auto_start

Last edited by teoberi; 05-22-2020 at 05:20 AM.
 
Old 05-22-2020, 06:14 AM   #2
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,151
Blog Entries: 5

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
My guess is that you didn't install gnome-keyring package.
To avoid having those messages in /var/log/secure, you can add a - character at the beginning of the two lines mentioning pam_gnome_keyring.so in file /etc/pam.d/system-auth.
Code:
$ cat /etc/pam.d/system-auth | grep pam_gnome_keyring.so
-auth        optional      pam_gnome_keyring.so
-session     optional      pam_gnome_keyring.so auto_start
The reason is given here

Quote:
...
If the type value from the list above is prepended with a - character the PAM library will not log to the system log if it is not possible to load the module because it is missing in the system. This can be useful especially for modules which are not always installed on the system and are not required for correct authentication and authorization of the login session.
 
6 members found this post helpful.
Old 05-22-2020, 06:28 AM   #3
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current, Ubuntu (servers)/Windows 11 (workstations)
Posts: 588

Original Poster
Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
The solution offered by @gegechris99 is better than just commenting on the two lines.
 
1 members found this post helpful.
Old 05-28-2020, 04:29 PM   #4
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634

Rep: Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929Reputation: 929
Commenting the lines with "#" will disable Gnome Keyring if the libs are still available (installed).
Using "-" won't disable it if the libs are still available (installed)
See:
https://www.linuxquestions.org/quest...ml#post6128470
 
3 members found this post helpful.
Old 05-29-2020, 12:19 AM   #5
teoberi
Member
 
Registered: Jan 2018
Location: Romania
Distribution: Slackware64-current, Ubuntu (servers)/Windows 11 (workstations)
Posts: 588

Original Poster
Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
I did not install gnome-keyring or libgnome-keyring and I do not intend if there will be no mandatory packages.
I have no problem with dependencies.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/pam.d/system-auth-ac vs. /etc/pam.d/password-auth-ac vs. /etc/pam.d/sshd christr Red Hat 2 08-01-2014 07:08 PM
Help with PAM and PAM modules bourne Linux - Security 6 11-02-2008 11:48 PM
PAM module:passwd:- how many character validate by pam library amit_pansuria Linux - General 3 10-21-2008 01:19 AM
vsftpd + pam + virtual users - Pam cannot load database file. mdkelly069 Linux - Networking 3 09-22-2004 11:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration