0

i've built a program from source in /usr/local/sbin but now if in a terminal i write "program-name" the terminal say that the command was not found. The program is seen by the terminal only if i do "sudo program-name" or if i go manually in the /usr/local/sbin directory and write ./program-name. I want to be able to run the program as normal user not sudo,without manually go in the sbin directory. How can i do this?

p.s.: I use Debian.

Azazel
  • 3

1 Answers1

1

When you sudo, you normally get root's PATH. Your shell uses PATH to find programs. You can adjust your own PATH (adding /usr/local/sbin). See for example Add folder to PATH.