LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 02-25-2013, 08:48 AM   #1
nexusdk
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Rep: Reputation: Disabled
LDAP removed, passwd: permission denied


Good day all

I set up a lab environment where students log into Debian via LDAP.
I would like to hand out the Linux image I have made, and therefor attempted to remove ldap (libpam-ldap libnss-ldap etc) on a virtual machine.
After doing this however my root user can no longer log in or run passwd.

Any help will be appreciated.

Kind regards
Nexusdk
 
Old 02-25-2013, 08:31 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Are you getting any specific error like incorrect password?
Also how & where did you remove ldap and after removing that what's method of login into those machines? Please explain it little more..
 
Old 02-26-2013, 04:14 AM   #3
nexusdk
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi

I removed ldap with apt-get remove libpam-ldap libnss-ldap and removed all references to ldap in /etc/pam.d/* and /etc/nsswitch.conf
The new login method would be unix accounts.

When I attampt to log into tty1 the screen flashes quicly, upon which I can read permission denied, and displays the login prompt again.

Kind regards
Nexusdk

Last edited by nexusdk; 02-26-2013 at 04:54 AM.
 
Old 02-26-2013, 06:01 AM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
What does /etc/nsswitch.conf says in it's passwd section?
 
Old 02-26-2013, 07:14 AM   #5
nexusdk
LQ Newbie
 
Registered: Feb 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
/etc/nsswitch.conf has

passwd: compat
 
  


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
SSSD/Kerberos/LDAP- Permission denied using ssh R09u3Bull Linux - Server 6 11-16-2012 01:04 AM
Permission denied as root for /etc/passwd ltoni Linux - Newbie 6 04-18-2012 12:30 PM
SVN + LDAP + Apache in Debian Can't open file /db/txn-current-lock Permission denied Ricio Linux - General 3 06-14-2009 03:46 PM
'permission denied" inspite of right permission flags on network drive anirudhvij Linux - Enterprise 8 05-22-2007 05:57 AM
$#!% passwd file removed, how do I log in as root? BrianK Linux - General 6 08-19-2004 02:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:59 AM.

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