Probs Login Only from Console
Greets, I am having troubles trying to log in from console (ttyX). I can log in from gdm, xdm, using 'su', 'xdu', from any login process except from console: I am using PAM for authentication, and this is the registry entry i get when trying to log in from console: Sep 7 13:29:26 scar login[7863]: FAILED LOGIN 1 FROM /dev/tty1 FOR root, Authentication failure This prob is for any user, not just root. I tried changing passwords but it didn't help. It was working fine, but i tried to change some display manager options to use gdm instead of xdm, and after some time i noted i was unable to log in from consoles. Using SuSE Professional 9.3, a recent instalattion with no external software yet. I would thank you so much if you could provide me ideas or hints about how to determine the cause and solution of the problem. thanks, -- Jonathan J. Vargas Rodriguez jonathan.j.vargas@gmail.com "Conservar el silencio interior cuando vuelo en la tormenta me es mejor, porque asi ya no soy otra gota de la tempestad"
Hi again, I just included debug options for authentication modules, so it will be easier to determine where the user is not authenticated, though, still can't determine a significative difference, in all cases the password seems to be incorrect. I performed several changes to the Security Settings using YaST, I established security level to 'network server', thinking that this could help fixing existing problems with current authentication config, but it didn't. If u think I need to supply further information just tell me, this kind of problem is new for me, and I don't want to hack on it again. Messages received to /var/log/messages -------------------------------------- when loggin from console (user jonathan): Sep 8 10:44:41 scar PAM-securetty[10652]: pam_securetty called via pam_sm_authenticate function Sep 8 10:44:41 scar login[10652]: pam_unix2: pam_sm_authenticate() called Sep 8 10:44:41 scar login[10652]: pam_unix2: username=[jonathan] Sep 8 10:44:46 scar login[10652]: pam_unix2: wrong password, return PAM_AUTH_ERR Sep 8 10:44:46 scar login[10652]: FAILED LOGIN 1 FROM /dev/tty1 FOR jonathan, Authentication failure When loggin from console (user root): Sep 8 10:44:49 scar PAM-securetty[10652]: pam_securetty called via pam_sm_authenticate function Sep 8 10:44:50 scar PAM-securetty[10652]: access allowed for 'root' on 'tty1' Sep 8 10:44:50 scar login[10652]: pam_unix2: pam_sm_authenticate() called Sep 8 10:44:50 scar login[10652]: pam_unix2: username=[root] Sep 8 10:44:54 scar login[10652]: pam_unix2: wrong password, return PAM_AUTH_ERR Sep 8 10:44:54 scar login[10652]: FAILED LOGIN 2 FROM /dev/tty1 FOR root, Authentication failure When loggin from console using real-invalid password (user jonathan): Sep 8 10:44:57 scar PAM-securetty[10652]: pam_securetty called via pam_sm_authenticate function Sep 8 10:44:59 scar login[10652]: pam_unix2: pam_sm_authenticate() called Sep 8 10:44:59 scar login[10652]: pam_unix2: username=[jonathan] Sep 8 10:45:02 scar login[10652]: pam_unix2: wrong password, return PAM_AUTH_ERR Sep 8 10:45:02 scar login[10652]: FAILED LOGIN SESSION FROM /dev/tty1 FOR jonathan, Authentication failure when login from su (jonathan to root): Sep 8 10:45:43 scar su: pam_unix2: pam_sm_authenticate() called Sep 8 10:45:43 scar su: pam_unix2: username=[root] Sep 8 10:45:46 scar su: pam_unix2: pam_sm_authenticate: PAM_SUCCESS Sep 8 10:45:46 scar su: pam_unix2: pam_sm_acct_mgmt() called Sep 8 10:45:46 scar su: pam_unix2: username=[root] Sep 8 10:45:46 scar su: pam_unix2: expire() returned with 0 Sep 8 10:45:46 scar su: (to root) jonathan on /dev/pts/4 Sep 8 10:45:46 scar su: pam_unix2: pam_sm_setcred() called Sep 8 10:45:46 scar su: pam_unix2: username=[root] Sep 8 10:45:46 scar su: pam_unix2: pam_sm_setcred: PAM_SUCCESS Sep 8 10:45:46 scar su: pam_unix2: session started for user root, service su COnfiguration files ------------------- scar:/etc/pam.d # cat login #%PAM-1.0 auth required pam_securetty.so debug auth include common-auth auth required pam_nologin.so debug auth required pam_mail.so debug account include common-account password include common-password session include common-session session required pam_resmgr.so debug scar:/etc/pam.d # scar:/etc/pam.d # cat xdm #%PAM-1.0 auth include common-auth account include common-account password include common-password session include common-session session required pam_devperm.so session required pam_resmgr.so scar:/etc/pam.d # cat su #%PAM-1.0 auth sufficient pam_rootok.so auth include common-auth account include common-account password include common-password session include common-session session optional pam_xauth.so scar:/etc/pam.d # cat common-auth # # /etc/pam.d/common-auth - authentication settings common to all services # # This file is included from other service-specific PAM config files, # and should contain a list of the authentication modules that define # the central authentication scheme for use on the system # (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the # traditional Unix authentication mechanisms. # auth required pam_env.so auth required pam_unix2.so Thnaks for ur support again, On 9/7/05, Jonathan J. Vargas R. <jonathan.j.vargas@gmail.com> wrote:
Greets,
I am having troubles trying to log in from console (ttyX). I can log in from gdm, xdm, using 'su', 'xdu', from any login process except from console: I am using PAM for authentication, and this is the registry entry i get when trying to log in from console:
Sep 7 13:29:26 scar login[7863]: FAILED LOGIN 1 FROM /dev/tty1 FOR root, Authentication failure
This prob is for any user, not just root. I tried changing passwords but it didn't help. It was working fine, but i tried to change some display manager options to use gdm instead of xdm, and after some time i noted i was unable to log in from consoles.
Using SuSE Professional 9.3, a recent instalattion with no external software yet.
I would thank you so much if you could provide me ideas or hints about how to determine the cause and solution of the problem.
thanks,
-- Jonathan J. Vargas Rodriguez jonathan.j.vargas@gmail.com "Conservar el silencio interior cuando vuelo en la tormenta me es mejor, porque asi ya no soy otra gota de la tempestad"
-- Jonathan J. Vargas Rodriguez jonathan.j.vargas@gmail.com "Conservar el silencio interior cuando vuelo en la tormenta me es mejor, porque asi ya no soy otra gota de la tempestad"
participants (1)
-
Jonathan J. Vargas R.