Re: sudo -h localhost

Marc Haber <[email protected]> Fri, 4 Jul 2025 13:33:32 +0200
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
On Thu, Jul 03, 2025 at 03:05:35PM -0600, Todd C. Miller wrote:
>On Thu, 03 Jul 2025 22:59:11 +0200, Marc Haber wrote:
>> My idea would be to not do any lookup if the hostname given to -h is
>> localhost. Or is the idea to have the rules for host
>> cadencia.zugschlus.de be honored if I do sudo -h localhost on cadencia?
>> In that case it is obviously necessary to do the lookup.
>
>Sorry, the user should not be able to specify the hostname to be
>used for sudoers evaluation.  That was a bug.  Is there a reason
>the "fqdn" option cannot be disabled on these systems that
>have no networking?

I don't have an idea. Would Defaults !fqdn work on a system that was 
complied --with-fqdn or does that compile time option hardwire the 
option to "on"?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users