-
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
-
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
-
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
-
i wouldnt reccomend putting sbin directories in a normal users path. just link any specific programs to /bin