LinuxQuestions.org
Visit Jeremy's Blog.
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, 04: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, 04:05 AM   #2
linux-sys-adm
LQ Newbie
 
Registered: Oct 2012
Distribution: ArchLinux
Posts: 13

Rep: Reputation: Disabled
Set: UsePAM no

in /etc/pam/sshd
 
Old 01-14-2013, 04: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, 06: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


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 10:41 PM
what to do if /etc/pam.d/login gets deleted!! justsimran Linux - General 1 04-22-2007 12:41 AM
Login errors - think it is pam Anno Linux - Security 1 08-11-2006 07:15 AM
Login/PAM errors PsypherPunk SUSE / openSUSE 3 09-09-2005 11:53 AM
PAM update and now no login! simonsez711 Linux - Networking 0 07-21-2005 02:22 AM


All times are GMT -5. The time now is 10:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration