LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't login to server (pam problems) (https://www.linuxquestions.org/questions/linux-newbie-8/cant-login-to-server-pam-problems-4175445504/)

Reignfire 01-14-2013 03:02 AM

Can't login to server (pam problems)
 
Hi,

I was trying to set up a ldap client on my Debian Squeeze but suddenly i couldn't use sudo anymore over my ssh.

When i go to my server and try to login it says:

"Insufficient credentials to access authentication data"

and when i try to login with root it doesn't work.

I put in my debian cd and started in rescue mode and changed

UsePam no

in /etc/ssh/sshd_config

Now i'm able to login with my username but i still can't use sudo so i don't have any rights. When i do sudo and enter my password it says: Sorry, try again.

Is there an easy fix for this?

linux-sys-adm 01-14-2013 03:05 AM

Set: UsePAM no

in /etc/pam/sshd

Reignfire 01-14-2013 03:08 AM

Quote:

Originally Posted by linux-sys-adm (Post 4869501)
Set: UsePAM no

in /etc/pam/sshd

I already did that and that fixed the ssh connection to the server but i'm still not able to use sudo and when i try to login directly on the server it still doesn't work.

Reignfire 01-14-2013 05:02 AM

Okay i'm able to login again. I changed all my files in /etc/pam.d/ (common-auth,...) and nsswitch.conf back to it's original.


All times are GMT -5. The time now is 03:43 PM.