Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-20-2005, 01:09 AM   #1
LQ Newbie
Registered: Dec 2005
Distribution: SuSE , Redhat
Posts: 4

Rep: Reputation: 0
PAM Authentication error saying " Error in service module"

Hey guyz ,hv been workin on PAM ..i hv written code for authenticating users using PAM..the code compiles properly but gives out a 'pam_error' while execution saying : " Error in service module". This error is given out for the 'pam_authenticate' API .PAM has been installed properly on the system.The same code works perfectly on a solaris 7 box ...Any config changes tht i need to make for linux ??? I m using a redhat 7.1 kernel 2.4.7-10.
Old 12-21-2005, 10:37 AM   #2
Registered: Dec 2005
Distribution: RHEL3, FC3
Posts: 383

Rep: Reputation: 30
can you kindly recheck the servicename, module name and the most important module path

in your PAM configuration file

make sure for the path of PAM library depending on 32-bit services (/usr/lib/security) or 64-bit services (/usr/lib/security/64)
Old 12-22-2005, 04:30 AM   #3
LQ Newbie
Registered: Dec 2005
Distribution: SuSE , Redhat
Posts: 4

Original Poster
Rep: Reputation: 0
Well , i am using the "login" service and the "auth" module. For details regarding path, all the ".so's" are in the /lib/security directory. I am using a RHEL (Red Hat Linux 3.2.3-47) kernel version 2.4.21-27.ELsmp #1. I have pasted below the contents of the /etc/pam.d/login file :

more /etc/pam.d/login
auth required
auth required service=system-auth
auth required
account required service=system-auth
password required service=system-auth
session required service=system-auth
session optional

Do i need to set any environment vairables like PATH or LD_LIBRARY_PATH ?? I have put /lib/security into LD_LIBRARY_PATH anyways . But it still gives out the same error.

***API details : 'pam_start' and 'pam_end' succeed while 'pam_authenticate' fails with Error : "Error in service module"

Thanks in advance
Old 07-19-2007, 03:27 PM   #4
LQ Newbie
Registered: Jun 2007
Posts: 11

Rep: Reputation: 0
Same problem here too

I am also getting the same problem
Error in service module while logging in root through a PAM auth module
while the other users are able to log in successfully.

is there something I am missing.

Thanks for any help


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
"passwd: Authentication token manipulation error" Neowulf Linux - Newbie 8 03-05-2014 05:01 PM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 05:32 PM
Error: "Tried to connect to session manager, Authentication Rejected, reason : None" randomx Linux - Software 0 01-24-2005 04:44 PM
service named error "rndc: conenct failed: connection refused" Reu Linux - General 1 07-12-2004 02:34 PM
FTP Error, Help needed. "Must perform authentication before identifying USER" acalvin Linux - Software 0 07-27-2003 02:41 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:53 AM.

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