So after almost a day of banging my head on the wall, I come seeking help
On my CLFS based system I recently re-compiled both linux-pam and shadow.
The compilations went without a hitch, until I tried to compile my next program.
It seems I have blown away my ability to su, or for that matter, login at the command prompt
When as root I try to su to a user I receive:
Code:
# su user
su: Error in service module
Now all of my searching has pointed to the fact that I may have a dodgy /etc/pam.d script.
As for logging in at a new tty, the system allows me to enter the user name and password, but then reverts back to the login prompt again.
I can only guess this is a similar issue as I can see no error messages.
I will attach all of my /etc/pam.d scripts to see if anyone can spot an issue, but below are the 3 (I presume) main culprits:
Code:
#
# The PAM configuration file for system authentication
#
auth required pam_env.so
auth sufficient pam_unix.so try_first_pass nullok
auth required pam_deny.so
account required pam_unix.so
password required pam_cracklib.so difok=2 minlen=8 dcredit=2 ocredit=2 retry=3
password sufficient pam_unix.so try_first_pass use_authtok nullok md5 shadow
password required pam_deny.so
session required pam_limits.so
session required pam_unix.so
#
# The common PAM configuration file for login
#
auth required pam_shells.so
auth include system-auth
auth optional pam_securetty.so
account required pam_nologin.so
account include system-auth
password include system-auth
session include system-auth
session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
session optional pam_lastlog.so nowtmp
session optional pam_mail.so dir=/var/mail standard
#
# The common PAM configuration file for su
#
auth sufficient pam_rootok.so
auth include system-auth
account include system-auth
password include system-auth
session include system-auth
session optional pam_xauth.so
Any help or a nudge in the right direction would be appreciated
Please also advise if any other information will help?
I have been reluctant to restart the system as not sure if I will be able to login at all??