
On Sat, Oct 16, 2010 at 12:54 PM, Bryce Utting <butting(a)ihug.co.nz> wrote:
Gregory Machin wrote:
Hi Sudo has me boggled ..... I'm trying to configure a group %linuxadmins .. My account is a member of linuxadmins , when I sudo iptables -h I get "sudo: iptables: command not found". If I sudo /sbin/iptables -h it works fine.
If you sudo bash and then echo $PATH, what do you see?
I'm guessing /sbin won't be in it -- sudo uses the target account's $PATH, not your account's.
butting _______________________________________________ wlug mailing list | wlug(a)list.waikato.ac.nz Unsubscribe: http://list.waikato.ac.nz/mailman/listinfo/wlug
[macgre(a)ns2 ~]$ sudo echo $PATH /usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/macgre/bin no it's missing .. how do I get sudo to add this ? -- - TLA - three letter acronym ... - We are loosing the art of communication through progress.. Proverbs 27:17 (New International Version) 17 As iron sharpens iron, so one man sharpens another.