Login impossible avec les comptes utilisateurs

Bonjour,

J’ai installé récemment debian 7.0 qui fonctionnait normalement jusque maintenant.

Seulement, après avoir démarré ma machine, je ne peux plus me loguer sur aucune sessions a part root.

Mon gestionnaire de session gdm3 (celui par défaut) n’affiche qu’un écran noir.
Dans un tty je ne peux pas me connecter sur un compte utilisateur. ( pas de message d’erreur, juste un “clear” du terminal )
Je peux me connecter sur root, mais : # su un_utilisateur Cannot execute /bin/bash: Permission denied
Pourtant :

# ls -l /bin/bash -rwxr-xr-x 1 root root 975488 déc. 30 02:39 /bin/bash
Identique quand je change de shell dans /etc/passwd.

Au démarrage de ma machine il y a quelques “[FAIL]” qui n’arrivaient pas avant mais je ne sais pas où retrouver les log du boot.

Un indice peut-être , quand la commande “su toto” échoue, voici la fin du ficher “auth.log” :

Jun 20 18:52:59 mon_hostname su[4724]: Successful su for toto by root Jun 20 18:52:59 mon_hostname su[4724]: + /dev/pts/1 root:toto Jun 20 18:52:59 mon_hostname su[4724]: pam_unix(su:session): session opened for user toto by root(uid=0) Jun 20 18:52:59 mon_hostname su[4724]: pam_unix(su:session): session closed for user toto

Peut-être que quelqu’un a une idée pour mon problème, moi je ne vois absolument pas : je ne sais pas comment cela fonctionne :confused:

Merci d’avance :slightly_smiling:

Extrait de /etc/login.defs

# Should login be allowed if we can't cd to the home directory?
# Default in no.
#
DEFAULT_HOME	yes

Par défaut, no ( # Default in no), il ne sera pas permis de se connecter sans $HOME.
En sus de /home, les montages de /usr /var ou /tmp pourraient également entrer en jeu.
/home /tmp ou /usr se trouvent-ils sur une partition séparée de / ?
Y a-t-il une ligne pour /home ou /usr /tmp /var en /etc/fstab ?

$ cat /etc/fstab

Si /home /tmp /usr ou /var sont des montages, sont-ils actuellement montés ?

$ df -hT
$ mount

Si un ou des montages manquent, démarrer un linux tiers et vérifier/réparer au moyen de fsck.

Merci, de ta réponse.

DEFAULT_HOME est bien à yes’.

/ et /home sont sur des partitions différentes et sont montés

[code]# cat /etc/fstab
UUID=f1cc6712-b5bf-486f-b1ef-f63571e0f99c / ext4 errors=remount-ro 0 1
UUID=dae8f589-65cf-47c6-8b93-d5f7c48af922 /home ext4 defaults 0 2
[…]

mount

/dev/sda9 on / type ext4 (rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered)
/dev/sda10 on /home type ext4 (rw,relatime,user_xattr,barrier=1,data=ordered)
[…]
[/code]

J’ai essayé de récupérer les log du boot comme l’indique http://wiki.debian.org/bootlogd mais ça ne marche pas. (le fichier ‘/etc/default/bootlogd’ n’existait pas, je l’ai crée, mais j’ai toujours pas de /var/log/boot après reboot).

Il se pourrait que mon problème ait un rapport avec le PAM ? Chose qui relève du mystique pour moi !

Salut,

Est-il installé ?

Autre point.

Notes de publication pour Debian 7.0 (« Wheezy »)

Extrait : 5.9. Changements de Bootlogd

Ça se pourrait.

sid:~$ ldd /bin/su linux-gate.so.1 (0xb7724000) libpam.so.0 => /lib/i386-linux-gnu/libpam.so.0 (0xb76f5000) libpam_misc.so.0 => /lib/i386-linux-gnu/libpam_misc.so.0 (0xb76f1000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb7541000) libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb753c000) /lib/ld-linux.so.2 (0xb7725000)

sid:~$ ldd /bin/login linux-gate.so.1 (0xb77dd000) libpam.so.0 => /lib/i386-linux-gnu/libpam.so.0 (0xb77ae000) libpam_misc.so.0 => /lib/i386-linux-gnu/libpam_misc.so.0 (0xb77aa000) libc.so.6 => /lib/i386-linux-gnu/i686/cmov/libc.so.6 (0xb75fa000) libdl.so.2 => /lib/i386-linux-gnu/i686/cmov/libdl.so.2 (0xb75f5000) /lib/ld-linux.so.2 (0xb77de000)
libpam.so.0 est cité pour su et pour login.

Il se pourrait également que le problème tire son origine de permissions mal définies.
Voir les permissions à la racine

$ ls -la /

Un exemple ancien, (an 2000) :
linuxgazette.net/issue52/okopnik.html
"Cannot execute /bin/bash: Permission denied" - solved!
En résumé : il a résolu son problème en restaurant une sauvegarde de /lib avec les permissions adéquates.

libpam est là …

[code]# ls -l /lib/x86_64-linux-gnu/libpam.so.0
lrwxrwxrwx 1 root root 16 avril 29 2012 /lib/x86_64-linux-gnu/libpam.so.0 -> libpam.so.0.83.0

ls -l /lib/x86_64-linux-gnu/libpam.so.0.83.0

-rw-r–r-- 1 root root 55808 avril 29 2012 /lib/x86_64-linux-gnu/libpam.so.0.83.0[/code]

et les permissions ont l’air bien :

# ls -la / drwx------ 25 root root 4096 juin 20 20:27 . drwx------ 25 root root 4096 juin 20 20:27 .. drwxr-xr-x 2 root root 4096 juin 17 15:42 bin drwxr-xr-x 4 root root 4096 juin 17 15:42 boot drwxr-xr-x 15 root root 3520 juin 20 22:25 dev drwxr-xr-x 137 root root 12288 juin 20 22:23 etc drwxr-xr-x 8 root root 4096 juin 20 15:39 home lrwxrwxrwx 1 root root 30 juin 13 17:34 initrd.img -> /boot/initrd.img-3.2.0-4-amd64 drwxr-xr-x 17 root root 4096 juin 16 15:10 lib drwxr-xr-x 2 root root 4096 juin 13 17:31 lib64 drwx------ 2 root root 16384 juin 13 17:29 lost+found drwxr-xr-x 4 root root 4096 juin 18 17:09 media drwxr-xr-x 23 root root 4096 juin 15 00:14 mnt drwxr-xr-x 2 root root 4096 juin 20 15:23 opt dr-xr-xr-x 153 root root 0 juin 20 23:07 proc drwx------ 2 root root 4096 juin 20 21:07 .pulse -rw------- 1 root root 256 juin 14 14:22 .pulse-cookie drwx------ 27 root root 4096 juin 20 21:29 root drwxr-xr-x 17 root root 780 juin 20 23:05 run drwxr-xr-x 2 root root 4096 juin 20 21:05 sbin drwxr-xr-x 2 root root 4096 juin 10 2012 selinux drwxr-xr-x 2 root root 4096 juin 13 17:31 srv drwxr-xr-x 13 root root 0 juin 20 23:07 sys drwxrwxrwt 9 root root 12288 juin 20 23:09 tmp drwxr-xr-x 11 root root 4096 juin 19 02:46 usr drwxr-xr-x 12 root root 4096 juin 13 18:59 var lrwxrwxrwx 1 root root 26 juin 13 17:34 vmlinuz -> boot/vmlinuz-3.2.0-4-amd64

Par contre j’ai maintenant les log du boot :

“[ ok un 20 21:07:22 2013: […] Setting parameters of disc: (none).
[ ok un 20 21:07:22 2013: […] Setting preliminary keymap…done.
[ ok un 20 21:07:22 2013: […] Activating swap…done.
Thu Jun 20 21:07:22 2013: […] Checking root file system…fsck from util-linux 2.20.1
Thu Jun 20 21:07:22 2013: /dev/sda9: clean, 216643/1531904 files, 1666572/6103515 blocks
[ ok un 20 21:07:22 2013: done.
Thu Jun 20 21:07:22 2013: [info] Loading kernel module loop.
[ ok un 20 21:07:23 2013: […] Cleaning up temporary files… /tmp.
[ ok un 20 21:07:23 2013: […] Activating lvm and md swap…done.
Thu Jun 20 21:07:23 2013: […] Checking file systems…fsck from util-linux 2.20.1
Thu Jun 20 21:07:23 2013: /dev/sda10: clean, 13094/7184384 files, 6362042/28717285 blocks
[ ok un 20 21:07:23 2013: done.
[ ok un 20 21:07:23 2013: […] Mounting local filesystems…done.
[ ok un 20 21:07:23 2013: […] Activating swapfile swap…done.
[ ok un 20 21:07:23 2013: […] Cleaning up temporary files…
[ ok un 20 21:07:24 2013: […] Setting kernel variables …done.
[ ok un 20 21:07:24 2013: […] Configuring network interfaces…done.
[ ok un 20 21:07:24 2013: […] Starting rpcbind daemon…
[FAILun 20 21:07:24 2013: […] Starting NFS common utilities: statd failed!
[ ok un 20 21:07:24 2013: […] Cleaning up temporary files…
[ ok un 20 21:07:24 2013: […] Setting up ALSA…done.
Thu Jun 20 21:07:25 2013: [info] Setting console screen modes.
Thu Jun 20 21:07:25 2013: e[9;30]e[14;30][info] Skipping font and keymap setup (handled by console-setup).
[ ok un 20 21:07:25 2013: […] Setting up console font and keymap…done.
[ ok un 20 21:07:25 2013: […] Setting up X socket directories… /tmp/.X11-unix /tmp/.ICE-unix.
[FAILun 20 21:07:25 2013: […] startpar: service(s) returned failure: nfs-common … failed!
Thu Jun 20 21:07:25 2013: INIT: Entering runlevel: 2
Thu Jun 20 21:07:25 2013: [info] Using makefile-style concurrent boot in runlevel 2.
[FAILun 20 21:07:25 2013: […] Starting NFS common utilities: statd failed!
[ ok un 20 21:07:25 2013: […] Starting rpcbind daemon…[…] Already running…
[ ok un 20 21:07:25 2013: […] Starting enhanced syslogd: rsyslogd.
[ ok un 20 21:07:26 2013: […] Starting periodic command scheduler: cron.
[FAILun 20 21:07:26 2013: […] Starting deferred execution scheduler: atd failed!
[ ok un 20 21:07:26 2013: […] Enabling power management…done.
[ ok un 20 21:07:26 2013: […] Enabling additional executable binary formats: binfmt-support.
[ ok un 20 21:07:26 2013: […] Starting ACPI services…
[ ok un 20 21:07:26 2013: […] Starting anac(h)ronistic cron: anacron.
[ ok un 20 21:07:26 2013: […] Starting acpi_fakekey daemon…done.
Thu Jun 20 21:07:26 2013: speech-dispatcher disabled; edit /etc/default/speech-dispatcher
[ ok un 20 21:07:27 2013: […] Starting OpenBSD Secure Shell server: sshd.
[ ok un 20 21:07:27 2013: […] Starting system message bus: dbus.
[ ok un 20 21:07:28 2013: […] Starting bluetooth: bluetoothd rfcomm.
[FAILun 20 21:07:28 2013: […] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon failed!
Thu Jun 20 21:07:28 2013: saned disabled; edit /etc/default/saned
[ ok un 20 21:07:28 2013: […] Starting network connection manager: NetworkManager.
[warnun 20 21:07:28 2013: […] PulseAudio configured for per-user sessions … (warning).
[ ok un 20 21:07:29 2013: […] Starting GNOME Display Manager: gdm3.
[ ok un 20 21:07:29 2013: […] Starting Common Unix Printing System: cupsd.
Thu Jun 20 21:07:29 2013: […] Starting MTA:Fatal: no entropy gathering module detected
Thu Jun 20 21:07:29 2013: Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not installing
Thu Jun 20 21:07:29 2013: /var/lib/exim4/config.autogenerated.tmp to /var/lib/exim4/config.autogenerated”

Je vais chercher à quoi correspond les services qui posent problème.

En tout cas merci pour votre aide.

J’ai résolu mon problème.

Je sais d’où vient cette anomalie : j’ai installé google-chrome (suite à un problème avec Flash et Grooveshark) .

L’archive distribuée par Google, que j’ai désarchivée à la racine, à modifié les permissions de ‘.’ (’/’). (je ne savais pas que s’était possible d’ailleurs)

Voilà, merci beaucoup pour votre aide :slightly_smiling: