Modify your <span style="font-weight: bold;">~/.bash_profile</span> and <span style="font-weight: bold;">/sbin</span> to your path, i.e.,<br><br><span style="font-weight: bold;">PATH=/sbin:/usr/sbin:$PATH:$HOME/bin</span><br>
<br><br><br><div><span class="gmail_quote">On 7/22/07, <b class="gmail_sendername">centos</b> <<a href="mailto:centos@unixplanet.biz">centos@unixplanet.biz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello<br><br>Any time I am running sudo, I should have full path to the command,<br>for example sudo /sbin/ifconfig<br><br>Is there any way to set the path for sudo ?<br><br>Thanks<br>_______________________________________________
<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br></blockquote></div><br>
<br clear="all"><br>-- <br>Eduardo Dela Rosa