Bug 174321
Summary: | Console login impossible | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Iradj Atchatchloui <atcloui> |
Component: | pam | Assignee: | Tomas Mraz <tmraz> |
Status: | CLOSED CANTFIX | QA Contact: | Jay Turner <jturner> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 4.0 | CC: | prockai, srevivo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
URL: | none | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2006-08-07 15:26:45 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Iradj Atchatchloui
2005-11-27 21:31:13 UTC
Hello, i don't think the problem is with console-tools, more probably pam (or authentication, generally). Could you please look what is written in /var/log/messages and /var/log/secure and provide us with these logs? It will help us diagnose your problem. (In reply to comment #1) > Hello, i don't think the problem is with console-tools, more probably pam > (or authentication, generally). Could you please look what is written > in /var/log/messages and /var/log/secure and provide us with these logs? It > will help us diagnose your problem. You're right, here are the lines from messages and secure: /var/log/messages: Nov 28 11:32:19 <host> login(pam_unix)[3209]: session opened for user root by (uid=0) Nov 28 11:32:19 <host> login[3209]: Module is unknown Nov 28 11:32:19 <host> init: open(/dev/pts/0): No such file or directory Nov 28 11:34:29 <host> kernel: inode_doinit_with_dentry: context_to_sid(system_u:object_r:winbind_helper_exec_t) returned 22 for dev=hda5 ino=164365 /var/log/secure: Nov 28 11:35:24 <host> login: PAM unable to dlopen(/lib/security/pam_loginuid. so) Nov 28 11:35:24 <host> login: PAM [dlerror: /lib/security/pam_loginuid.so: cannot open shared object file: No such file or directory] Nov 28 11:35:24 <host> login: PAM adding faulty module: /lib/security/pam_loginuid.so # # ls -l /lib/security/pam_loginuid.so ls: /lib/security/pam_loginuid.so: No such file or directory Tried to update pam RPM, it says: # rpm -Uhv pam-0.77-66.11.i386.rpm warning: pam-0.77-66.11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] error: %pre(pam-0.77-66.11.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping pam-0.77-66.11 # There is most probably some breakage on your system - the %pre scriptlet shouldn't fail as it is very simple and doesn't use any special binaries. Here it is: if [ -f %{_sysconfdir}/pam.d/other ] ; then USEMD5= if [ -f /etc/sysconfig/authconfig ] ; then . /etc/sysconfig/authconfig fi if [ -z "$USEMD5" ] ; then if [ -f /etc/shadow ] ; then passwdfiles="/etc/passwd /etc/shadow" else passwdfiles="/etc/passwd" fi if cut -f2 -d: $passwdfiles | grep -q '^\$1\$' ; then echo USEMD5=yes >> /etc/sysconfig/authconfig USEMD5=yes else echo USEMD5=no >> /etc/sysconfig/authconfig USEMD5=no fi fi fi exit 0 Could you try to run it from command line to see what happens? You could remove the pam_loginuid.so from the /etc/pam.d/login however the real problem is why the pam %pre scriptlet fails. (In reply to comment #3) > There is most probably some breakage on your system - the %pre scriptlet > shouldn't fail as it is very simple and doesn't use any special binaries. > > Here it is: > if [ -f %{_sysconfdir}/pam.d/other ] ; then > USEMD5= > if [ -f /etc/sysconfig/authconfig ] ; then > . /etc/sysconfig/authconfig > fi > if [ -z "$USEMD5" ] ; then > if [ -f /etc/shadow ] ; then > passwdfiles="/etc/passwd /etc/shadow" > else > passwdfiles="/etc/passwd" > fi > if cut -f2 -d: $passwdfiles | grep -q '^\$1\$' ; then > echo USEMD5=yes >> /etc/sysconfig/authconfig > USEMD5=yes > else > echo USEMD5=no >> /etc/sysconfig/authconfig > USEMD5=no > fi > fi > fi > exit 0 > > Could you try to run it from command line to see what happens? > > You could remove the pam_loginuid.so from the /etc/pam.d/login however the real > problem is why the pam %pre scriptlet fails. > o ran the "%pre scriptlet" on command line. This does not fail o Removing the the pam_loginuid.so entry solved the problem -> console logging is now is possiblea o This entry exist in ohter Systems, even though the consol loggin is no problem o I could not find any trace of breakage on my this system! o Still I get the failure on installing pam rpm: - ran the script you # rpm -Uhv pam-0.77-66.11.i386.rpm warning: pam-0.77-66.11.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e Preparing... ########################################### [100%] error: %pre(pam-0.77-66.11.i386) scriptlet failed, exit status 255 error: install: %pre scriptlet failed (2), skipping pam-0.77-66.11 # Do you have SELinux on in enforcing mode. Have you tried relabelling the system? (In reply to comment #5) > Do you have SELinux on in enforcing mode. Have you tried relabelling the system? > o Yes, SELinux is on enforcing Mode o No, I did not relabeled the System. I'm not really sure, if the system will get a problem after relabeling or not. Could you please use the support issue tracker to report the bug? You would get more proper attention and timely responses there. When you report it, mention this bug number there. (In reply to comment #7) > Could you please use the support issue tracker to report the bug? You would get > more proper attention and timely responses there. > > When you report it, mention this bug number there. > I'm in vacation, I'll be able do the support issue tracker to report the bug after my vacation. It seems there are some other config things are affected too: # useradd abc useradd: cannot rewrite password file # Since there are insufficient details provided in this report for us to investigate the issue further, and we have not received the feedback we requested, we will assume the problem was not reproduceable or has been fixed in a later update for this product. Users who have experienced this problem are encouraged to upgrade to the latest update release, and if this issue is still reproduceable, please contact the Red Hat Global Support Services page on our website for technical support options: https://www.redhat.com/support If you have a telephone based support contract, you may contact Red Hat at 1-888-GO-REDHAT for technical support for the problem you are experiencing. |