Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-14-2013, 03:02 AM   #1
Registered: Jun 2012
Posts: 56

Rep: Reputation: Disabled
Can't login to server (pam problems)


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?
Old 01-14-2013, 03:05 AM   #2
LQ Newbie
Registered: Oct 2012
Distribution: Debian
Posts: 21

Rep: Reputation: Disabled
Set: UsePAM no

in /etc/pam/sshd
Old 01-14-2013, 03:08 AM   #3
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
Originally Posted by linux-sys-adm View Post
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.
Old 01-14-2013, 05:02 AM   #4
Registered: Jun 2012
Posts: 56

Original Poster
Rep: Reputation: Disabled
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PAM Login? arew264 Debian 4 05-06-2007 09:41 PM
what to do if /etc/pam.d/login gets deleted!! justsimran Linux - General 1 04-21-2007 11:41 PM
Login errors - think it is pam Anno Linux - Security 1 08-11-2006 06:15 AM
Login/PAM errors PsypherPunk SUSE / openSUSE 3 09-09-2005 10:53 AM
PAM update and now no login! simonsez711 Linux - Networking 0 07-21-2005 01:22 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:54 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration