Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2008 04:15:30 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Chris Whitehouse <cwhiteh@onetel.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: localhost in sudoers
Message-ID:  <4792CAE2.7070805@infracaninophile.co.uk>
In-Reply-To: <47928A73.2040904@onetel.com>
References:  <47924869.2000909@onetel.com> <877ii5fsh0.fsf@chateau.d.lf> <47928A73.2040904@onetel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Chris Whitehouse wrote:

> 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?

Confusion between the IPv6ish ::1 rather than the IPv4ish 127.0.0.1
perhaps? You can just put the hostname of your machine in the sudoers
file and sudo will query the IP addresses of its interfaces at runtime
- -- or simply don't use the host based limiting stuff at all: that syntax is
predicated on having the same sudoers file distributed over a number
of machines, which is great for a large site with dozens of servers,
but for a home user it's possibly easier to maintain an individual
sudoers file on each machine you have.

	Cheers,

	Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                  Kent, CT11 9PW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHksri8Mjk52CukIwRCPfHAJ9m98pQb76ID8leqKRhyHKrzmJnFwCfaVXA
n1hIg4OKpiursIKyu12ICE8=
=jGzw
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4792CAE2.7070805>