From owner-freebsd-questions@FreeBSD.ORG Sat Jan 19 23:40:37 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 645D416A46C for ; Sat, 19 Jan 2008 23:40:37 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from smtp1.bethere.co.uk (smtp1.betherenow.co.uk [87.194.0.68]) by mx1.freebsd.org (Postfix) with ESMTP id 339C213C46A for ; Sat, 19 Jan 2008 23:40:36 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from [192.168.1.71] (87-194-3-32.bethere.co.uk [87.194.3.32]) by smtp1.bethere.co.uk (Postfix) with SMTP id 76A7398032 for ; Sat, 19 Jan 2008 23:40:35 +0000 (GMT) Message-ID: <47928A73.2040904@onetel.com> Date: Sat, 19 Jan 2008 23:40:35 +0000 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.9 (X11/20071228) MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <47924869.2000909@onetel.com> <877ii5fsh0.fsf@chateau.d.lf> In-Reply-To: <877ii5fsh0.fsf@chateau.d.lf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: localhost in sudoers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jan 2008 23:40:37 -0000 Ashish Shukla आशीष शुक्ल wrote: >>>>>> Chris Whitehouse writes: > > Chris> The problem is this machine gets its ip address by dhcp so I shouldn't > Chris> enter an ip in sudoers. Is there a neat way round this? > > Why not use hostname from DNS, instead, hmm...? > > HTH I'm not sure what you mean. This computer is on a local network behind a nat box and doesn't have a dns entry. %host 192.168.1.71 71.1.168.192.in-addr.arpa domain name pointer eco.config. %host localhost localhost has address 127.0.0.1 I think my question really is why doesn't sudoers recognise localhost or 127.0.0.1? Chris