LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sshd problems: (https://www.linuxquestions.org/questions/linux-software-2/sshd-problems-210661/)

scuzzy 07-28-2004 12:33 PM

sshd problems:
 
I've got a problem with sshd on one of my systems

I've got two computers, Let's call them C1 and C2

now C2 is connected via ethernet to C1, and C1 is connected to the internet; they both have full network access.

Ever since I've gotten their network to run, C2 refuses to accept passwords from any account using sshd except for root; I'm trying to log into C2 from C1 using sshd.

It gives a "Permission Denied" error and fails every time, regardless of what I set the password to, or what I enter. It works absolutely fine with zero problems on the root account.

I've tried ssh-krb5 and just standard openSSH with no results between either of them.

What's the deal? Is it PAM screwing things up?

jhumeston 07-28-2004 06:25 PM

PAM is the first thing I would look at. This is what my sshd PAM file looks like:

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

scuzzy 07-29-2004 08:10 AM

I just noticed today.


It's the same problem on the console, I can't log in as anyone other than root. I'm not sure what's going on, but it's really irritating.


Also, I rebuilt the kernel a few nights ago, I've been working from the console since then, but it went from kernel version 2.2 something to 2.6.7. Perhaps this could be the problem?

jhumeston 07-29-2004 10:30 AM

have you checked your /etc/passwd and /etc/group files to see if everything is ok with them?

scuzzy 07-29-2004 10:38 AM

yep. sure have. no problems, all is normal.

jhumeston 07-29-2004 10:41 AM

what shell are your users set up to use? is it the same as root? If nothing is wrong with the user accounts, then it must be an authentication problem.

SheldonPlankton 07-29-2004 11:27 AM

I had problem like this before. It turned out that another sys admin had run a buggy script that changed the file permissions of / to something like drwx------

Just something to check

jhumeston 07-29-2004 11:35 AM

good point. check the permissions of the users directories and make sure there is x so they can chroot.

scuzzy 07-29-2004 12:44 PM

nope, the permissions are correct. any other ideas?


All times are GMT -5. The time now is 11:34 AM.