On Thu 28 Jul 2022 at 23:39:01 (-0500), Igor Korot wrote:
> On Thu, Jul 28, 2022 at 11:10 PM David Wright <deb...@lionunicorn.co.uk> 
> wrote:
> > On Thu 28 Jul 2022 at 22:37:39 (-0500), Igor Korot wrote:
> > > According to 
> > > https://packages.debian.org/cgi-bin/search_contents.pl?word=ldconfig&searchmode=searchfiles&case=insensitive&version=stable&arch=i386,
> > >
> > > ld config is located inside /sbin and it is installed through the 
> > > libc-bin.
> > >
> > > Trying to run ldconfig gives "No such file or directory"
> > > Running "apt install libc-bin" says "Its installed and already a latest
> > > version"
> > > Only running "/sbin/ldconfig" makes it run.
> > >
> > > Is "/sbin" not in the default PATH variable?
> >
> > For an ordinary user: no.
> >
> > For root: yes.
> 
> Wrong. ;-)
> Boot into an OS and login as a regular user.
> Open the Terminal
> Become root by running su

You'd better get up to date on the change made to the behaviour of su.
If you run plain "su", you don't get root's default PATH variable,
but whatever it was before.

> Try to run ldconfig -> "Command not found"
> Try to run /sbin/ldconfig -> execution successful

Cheers,
David.

Reply via email to