TERMINAL : impossible d'exécuter chsh sh

Bonjour,

il m’arrive un problème bizzarre dans le terminal de Gnome : quand je veux me logger en admin :

Je rentre le mot de passe adminstrateur qui m’est réclamé :

Et là, il m’affiche :

Impossible d'exécuter chsh sh: Aucun fichier ou dossier de ce type
Je ne comprends pas pourquoi.
Du coup, impossible de me logger en administrateur.
Bien sûr, j’ai tenté de lancer le terminal administrateur, mais voici le résultat : image jointe.

Précisions utiles :

  • J’utilise Debian Wheezy sous Gnome

roland@asusA6000:~$ lspci 00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) 00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) 00:1d.0 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) 00:1d.1 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) 00:1d.2 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) 00:1d.7 USB controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83) 00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) 00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03) 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03) 00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 01:04.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) 01:05.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac) 01:05.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac) 01:05.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04) roland@asusA6000:~$ lspci 00:00.0 Host bridge: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:00.1 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:00.3 System peripheral: Intel Corporation 82852/82855 GM/GME/PM/GMV Processor to I/O Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) 00:02.1 Display controller: Intel Corporation 82852/855GM Integrated Graphics Device (rev 02) 00:1d.0 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #1 (rev 03) 00:1d.1 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #2 (rev 03) 00:1d.2 USB controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller #3 (rev 03) 00:1d.7 USB controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Controller (rev 03) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83) 00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (rev 03) 00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 03) 00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller (rev 03) 00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 03) 00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 03) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10) 01:04.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02) 01:05.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac) 01:05.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ac) 01:05.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 04)

La solution est venue “d’ailleurs”. Néanmoins, je vous la livre :

[quote=“larry3460”]Merci à tous :slightly_smiling:

Je crois qu’il est d’usage de faire une petit résumé quand un fil est résolu. Le voici :

Si vous commettez l’erreur, en gros débutant que vous êtes (tout comme moi), d’utiliser la ligne de commande en tant qu’administrateur et que, en voulant changer de shell, vous n’avez pas très bien mémorisé le fonctionnement de l’instruction “chsh”, vous risquez d’avoir de gros problèmes.
Comme celui qui m’a conduit à appeler au secours en créant ce fil (voir plus haut)…

… Voilà la solution :

Le problème venait de la fin de première ligne du fichier /etc/passwd qui avait été, accidentellement, modifiée (en root) par “chsh sh”, ce qui entrainait le blocage, décrit dans le premier post de ce fil.

La seule solution qui a fonctionné, pour moi, était :

  1. Booter avec un live CD (Knoopix Kaella, par exemple) - merci Paskal ;
  2. Monter, en tant que root, la partition du noyau résident - merci stephgarg ; mount -text4 /dev/sda1 /mnt
  3. éditer /etc/passwd pour remplacer la fin de la 1ère ligne (“chsh sh”) par “/bin/bash” ou “/bin/sh” - merci captnfab, qui avait compris ça dès la 1ère question.
    Après ça, reboot normal et tout rentre dans l’ordre.

Un grand bravo pour debian-facile.org :smiley:[/quote]