[Permission] su: failed to execute /bin/bash: Permission denied (Résolu)

Questions et astuces concernant l'installation et la configuration d'archlinux
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 175
Inscription : mar. 12 sept. 2017, 21:15

[Permission] su: failed to execute /bin/bash: Permission denied (Résolu)

Message par PowaBanga »

Salut à tous,
Je viens d'installer archlinux aarch64 sur un raspberry pi 4B en suivant ces instruction qui sont recommandées par les modérateurs du forum archlinuxarm : https://archlinuxarm.org/forum/viewtopi ... =10#p62449
Ici je suis en arch-chroot via mon rpi3B+. Et donc, tout mon souci est explicite dans le titre du topic. voici les commandes que j'ai faite... et franchement, je ne comprend pas bien ce qui ne va pas, ça devrait fonctionner... :/

Code : Tout sélectionner

[root@Raspi3BLio /]# su powabanga
su: failed to execute /bin/bash: Permission denied
[root@Raspi3BLio /]# groups powabanga
users powabanga
[root@Raspi3BLio /]# ls -l /bin/bash
-rwxr-xr-x 1 root root 1046152 24 mai 09:47 /bin/bash
[root@Raspi3BLio /]# ls -l /home
total 8
drwx------ 2 gilberte  gilberte  4096  8 aoû 22:27 gilberte
drwx------ 2 powabanga powabanga 4096  8 aoû 22:29 powabanga
[root@Raspi3BLio /]# chmod 777 /home/powabanga
[root@Raspi3BLio /]# ls -l /home
total 8
drwx------ 2 gilberte  gilberte  4096  8 aoû 22:27 gilberte
drwxrwxrwx 2 powabanga powabanga 4096  8 aoû 22:29 powabanga
[root@Raspi3BLio /]# su powabanga
su: failed to execute /bin/bash: Permission denied
[root@Raspi3BLio /]# chmod 700 /home/powabanga
[root@Raspi3BLio /]# ls -l /
total 64
lrwxrwxrwx   1 root root     7 23 mai 03:47 bin -> usr/bin
drwxr-xr-x   4 root root 16384 13 aoû 08:02 boot
drwxr-xr-x  15 root root  3700 13 aoû 07:52 dev
drwxr-xr-x  53 root root  4096 13 aoû 08:03 etc
drwxr-xr-x   4 root root  4096  8 aoû 22:29 home
lrwxrwxrwx   1 root root     7 23 mai 03:47 lib -> usr/lib
drwx------   2 root root 16384 12 aoû 11:41 lost+found
drwxr-xr-x   2 root root  4096 23 mai 03:47 mnt
drwxr-xr-x   3 root root  4096 12 aoû 12:10 opt
dr-xr-xr-x 147 root root     0  1 jan  1970 proc
drwxr-x---   3 root root  4096 12 aoû 12:15 root
drwxr-xr-x  21 root root   580 13 aoû 08:03 run
lrwxrwxrwx   1 root root     7 23 mai 03:47 sbin -> usr/bin
drwxr-xr-x   4 root root  4096 12 aoû 12:07 srv
dr-xr-xr-x  12 root root     0  1 jan  1970 sys
drwxrwxrwt   2 root root    40 13 aoû 08:04 tmp
drwxr-xr-x   8 root root  4096 13 aoû 08:03 usr
drwxr-xr-x  12 root root  4096  8 aoû 22:24 var
Quelqu'un saurait-il m'aider ?
Dernière modification par PowaBanga le mar. 18 août 2020, 21:16, modifié 1 fois.
laurent85
Elfe
Messages : 951
Inscription : mar. 16 oct. 2018, 21:05

Re: [Permission] su: failed to execute /bin/bash: Permission denied

Message par laurent85 »

Bonjour,
D'après le message vérifie les permissions :

Code : Tout sélectionner

ls -ld / /usr /usr/bin /usr/bin/bash
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 175
Inscription : mar. 12 sept. 2017, 21:15

Re: [Permission] su: failed to execute /bin/bash: Permission denied

Message par PowaBanga »

ha ok je vois

Code : Tout sélectionner

ls -ld / /usr /usr/bin /usr/bin/bash
drwxr-x--- 18 root root    4096 12 aoû 12:07 /
drwxr-xr-x  8 root root    4096 13 aoû 12:03 /usr
drwxr-xr-x  5 root root   36864 13 aoû 12:03 /usr/bin
-rwxr-xr-x  1 root root 1046152 24 mai 09:47 /usr/bin/bash
du coup j'ai fais un

Code : Tout sélectionner

chmod 751 /
et cela semble avoir réglé le souci. j'espère que c'étais la meilleure chose à faire... :)
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17186
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Permission] su: failed to execute /bin/bash: Permission denied

Message par benjarobin »

Si tu veux pouvoir lister le contenu de / avec ton utilisateur, il est préférable d'avoir 755 sur /
Après a question que je me pose, c'est comment c'est possible ?
Zsh | KDE | PC fixe : core i7, carte nvidia
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 175
Inscription : mar. 12 sept. 2017, 21:15

Re: [Permission] su: failed to execute /bin/bash: Permission denied

Message par PowaBanga »

Ha ok.
Est-il possible que cela soit dû a un paquet corrompu lors de l'installation ou quelque chose de ce type ?
Avatar de l’utilisateur
PowaBanga
archer de cavalerie
Messages : 175
Inscription : mar. 12 sept. 2017, 21:15

Re: [Permission] su: failed to execute /bin/bash: Permission denied

Message par PowaBanga »

Ok j'avais pas fais un truc genre écrir "-C"et " faire un sync dans le terminal, autant pour moi.

Problème réglé donc
Répondre