Results 1 to 4 of 4

Thread: Command not found if not root

  1. #1
    Join Date
    2020-Apr
    Posts
    2

    Command not found if not root

    Hello everyone.

    I am trying to use some commands like ifconfig and iwconfig but I can no access them if I dont run them as root.

    The point here is that instead of saying that the command needs administrator access it says me that it could not be found. I have tryed adding more directoryes to the PATH variable but I dont find all of them. I have also tryed with visudo adding complete access for my user but I was not lucky.

    I think it should be something about the path of root access. Where am I supose to change that?

    Thanks in advanced.

  2. #2
    Join Date
    2018-Jun
    Posts
    31
    Try adding /usr/sbin to your path

  3. #3
    Join Date
    2020-Apr
    Posts
    2
    Yes, it works that way but my question is more general: even if I add to PATH the path of my root user, why are some commands still not appearing? I later use sudo to run them and they work

  4. #4
    Join Date
    2018-Jun
    Posts
    31
    Best way to explain it is to think of those tools as administrative ones, so they hide them away from regular users.

Similar Threads

  1. Command not Found
    By mike_90 in forum General Archive
    Replies: 3
    Last Post: 2020-07-13, 18:48
  2. Command not found
    By 44kia244 in forum NetHunter General Questions
    Replies: 12
    Last Post: 2015-01-07, 23:58

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •