Page 1 sur 1

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

Publié : jeu. 13 août 2020, 10:20
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 ?

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

Publié : jeu. 13 août 2020, 15:49
par laurent85
Bonjour,
D'après le message vérifie les permissions :

Code : Tout sélectionner

ls -ld / /usr /usr/bin /usr/bin/bash

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

Publié : jeu. 13 août 2020, 16:26
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... :)

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

Publié : jeu. 13 août 2020, 17:07
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 ?

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

Publié : jeu. 13 août 2020, 17:42
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 ?

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

Publié : mar. 18 août 2020, 21:16
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