Weblog entry #2 for Nilshar

Problem with sudo
Posted by Nilshar on Wed 22 Nov 2006 at 09:44
Tags: none.
Is there a way to tell sudo to not resolve hostname ?
Actually, if hostname is not in /etc/hosts, sudo just don't work.. Ideally, hostname should always be in /etc/hosts, but if there is a solution to tell sudo to ignore that, it would be great...

 

Comments on this Entry

Posted by Steve (80.68.xx.xx) on Wed 22 Nov 2006 at 14:36
[ Send Message | View Steve's Scratchpad | View Weblogs ]

You could try unsetting the fqdn flag in /etc/sudoers - see the manpage for details of what that will do. ("man sudoers")

I'm not sure whether that will do what you want, but it is the only obvious setting relating to hostnames.

Steve

[ Parent | Reply to this comment ]

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search