[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linux-31] bash: commande introuvable
Le 20/05/2020 à 08:16, Christophe VANHOUTTE (via linux-31 Mailing List)
a écrit :
> C'est mieux avec ton info, par contre pourquoi le 'su' ne fonctionne
> plus du coup ?
> avant pas besoin de ''su -''
https://wiki.debian.org/NewInBuster
The su command in buster is provided by the util-linux source package,
instead of the shadow source package, and no longer alters the PATH
variable by default. This means that after doing su, your PATH may not
contain directories like /sbin, and many system administration commands
will fail. There are several workarounds:
Use su - instead; this launches a login shell, which forces PATH to
be changed, but also changes everything else including the working
directory.