Answer the question
In order to leave comments, you need to log in
Where in debian can I find a file with full paths to the program?
From a normal user, all commands work, and when switching to root, it writes command not found.
for example, the command dir
works under the user, but you need to write under the root I /bin/dir
'm looking for the wget command
What can I do to make life easier?
Answer the question
In order to leave comments, you need to log in
It's like you had to abuse Debian in order to achieve this ... You don't need to look for anything! You need to set the correct PATH for root (in /etc/login.defs ).
Basically, it is enough to have there:
ENV_SUPATH PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV_PATH PATH=/usr/local/bin:/usr/bin:/bin
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question