LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Redhat Linux login problem with non-root user (https://www.linuxquestions.org/questions/linux-software-2/redhat-linux-login-problem-with-non-root-user-88248/)

wxxg 09-01-2003 11:27 PM

Redhat Linux login problem with non-root user
 
Hi there,

I have an SSH login problem with our newly installed RedHat Advanced Server 2.1 running on Dell PowerEdge 1750. I CAN SSH into it if I log in as root, however, if I try to log in as normal user, error message 'connection closed' will appear.

Anybody has encountered simliar problem? I don't think it's ssh problem, as I turn on sshd verbose level to DEBUG, sshd is not complaining anything. Instead, I believe it should have something to do with my PAM configuration, but I am new to PAM and cannot find anything wrong with those config files.

Here is my /etc/pam.d/sshd:

#%PAM-1.0
auth required /lib/security/pam_stack.so service=system-auth
auth required /lib/security/pam_nologin.so
account required /lib/security/pam_stack.so service=system-auth
password required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_stack.so service=system-auth
session required /lib/security/pam_limits.so
session optional /lib/security/pam_console.so

And here is my /etc/pam.d/system-auth:

#%PAM-1.0
# This file is auto-generated.
# User changes will be destroyed the next time authconfig is run.
auth required /lib/security/pam_env.so
auth sufficient /lib/security/pam_unix.so likeauth nullok
auth required /lib/security/pam_deny.so

account required /lib/security/pam_unix.so

password required /lib/security/pam_cracklib.so retry=3 type=
password sufficient /lib/security/pam_unix.so nullok use_authtok md5 shadow
password required /lib/security/pam_deny.so

session required /lib/security/pam_limits.so
session required /lib/security/pam_unix.so

Besides, when I SSH in as root, I can find the following messages in sshd log, which are missing when I ssh in as normal user:

PAM establishing creds
channel 0: rfd 7 isatty
fd 7 setting O_NONBLOCK

Thanks in advance for your enlightenment.


All times are GMT -5. The time now is 12:21 AM.