Re: HELP !! Can not connect as root because LDAP is broken
hi !
you should have a root account in /etc/passwd ?
try to boot with a live CD, backup your /etc/nsswitch.conf, remove all
ldap entry in this file. You should just have :
passwd: compat
group: compat
shadow: compat
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files
protocols: db files
services: db files
ethers: db files
rpc: db files
netgroup: nis
Reboot.
Additionnaly you can reset the password of the root account, by
modifying /etc/passwd file. your first should be :
root:x:0:0:root:/root:/bin/bash
delete the x to obtain the following line :
root::0:0:root:/root:/bin/bash
now you can login with root account without password and re install your
package.
Julien.
Le vendredi 19 juin 2009 à 14:37 +0100, Thomas Nguyen Van a écrit :
> Hello,
>
> I de-installed by mistake from my Debian machine (Lenny 2.6.18-6-686) the following packages:
> ii ldap-utils 2.3.30-5+etch2 OpenLDAP utilities
> ii libldap-2.3-0 2.3.30-5+etch2 OpenLDAP libraries
> ii libldap2 2.1.30-13.3 OpenLDAP libraries
> ii libnss-ldap 251-7.5etch1 NSS module for using LDAP as a naming servic
> ii libpam-ldap 180-1.7 Pluggable Authentication Module allowing LDA
>
> Since then, I can not log on as root.
>
> Does anyone knows how to repair the machine?
>
> Thanks in advance
>
> Thomas
>
>
Reply to: