LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: Disabled
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?
 
Old 01-14-2013, 03:05 AM   #2
linux-sys-adm
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
Reignfire
Member
 
Registered: Jun 2012
Posts: 56

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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