Find the answer to your Linux question:
Results 1 to 4 of 4
hello mr. moderator for along time ago i just wondering how to execute programs in /sbin/ , /usr/sbin directory that belong root account how about mtr for sample ones in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2004
    Location
    Indonesia
    Posts
    84

    mtr (Matt's Traceroute)


    hello mr. moderator

    for along time ago i just wondering how to execute programs in /sbin/ , /usr/sbin directory that belong root account

    how about mtr for sample ones in /usr/sbin/mtr
    am i have to use sudo to execute root account programs

    and how to make root assistant account for sample ?

    thanks again

  2. #2
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    if the program requires u to be root then u have to make it suid yes.

    if the only reason u cant run it is coz its in /sbin (ie not in your path) u can just do ln -s /sbin/commandname /bin/

    and it will link it to a pace where it will show up in tab completes etc

  3. #3
    Linux Engineer kriss's Avatar
    Join Date
    Jun 2003
    Posts
    1,113
    Most commands that are in eg. /sbin are ment for root, so its not in your normal PATH enviroment, but you can use the export command to edit $PATH.

    Good luck

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Engineer
    Join Date
    Dec 2002
    Location
    New Zealand
    Posts
    766
    i wouldnt reccomend putting sbin directories in a normal users path. just link any specific programs to /bin

Posting Permissions

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