Activity log for bug #32906

Date Who What changed Old value New value Message
2006-02-26 03:21:28 Manuel López-Ibáñez bug added bug
2006-03-28 16:39:50 Martin Pitt sudo: status Unconfirmed Confirmed
2006-03-28 16:39:50 Martin Pitt sudo: severity Normal Minor
2006-03-28 16:39:50 Martin Pitt sudo: statusexplanation
2006-04-29 19:13:19 Uphaar Agrawalla bug added subscriber Jerome Lacoste
2006-10-06 14:19:20 Martin Pitt sudo: assignee pitti
2008-01-14 09:53:24 Martin Pitt sudo: importance Low High
2008-01-14 09:53:24 Martin Pitt sudo: status Confirmed In Progress
2008-03-13 16:58:56 Martin Pitt sudo: status In Progress Incomplete
2008-03-17 08:38:48 Martin Pitt sudo: status Incomplete In Progress
2008-04-28 07:43:55 Martin Pitt sudo: milestone ubuntu-8.04.1
2008-04-30 10:40:26 Martin Pitt title sudo shouldn’t ABSOLUTELY NEED to look up the host it’s running on sudo fails if it cannot resolve the local hostname and no MTA is installed
2008-04-30 10:50:59 Martin Pitt bug assigned to sudo
2008-04-30 10:52:14 Bug Watch Updater sudo: status Unknown Confirmed
2008-04-30 11:25:32 Martin Pitt description On behalf of Adam Williamson [*] adamw@ubuntu510:~$ sudo scp 192.168.2.7:/etc/hosts /etc adamw@ubuntu510:~$ sudo nano /etc/hosts sudo: unable to lookup ubuntu510 via gethostbyname() …yeah, sudo, it’s all very clever until someone loses an eye! I have a bunch of entries in /etc/hosts because of having four local systems plus a bunch of VMware machines etc. So now when I set up a new VMware machine I just copy the /etc/hosts from the real machine over to the VM then edit a couple of lines to match the VM, instead of re-editing it all from scratch. Only, as you can see, this utterly breaks Ubuntu…all I need to do to fix the sudo problem is edit /etc/hosts so 127.0.0.1 is ‘ubuntu510′ (the name of the VM) rather than ‘zen’ (the name of the real machine), but I can’t do it, because sudo doesn’t work… the only way out of this that I can see is single-user mode or the recovery console. Not too smart! Surely sudo shouldn’t ABSOLUTELY NEED to look up the host it’s running on? [*] Originally from http://www.happyassassin.net/2006/02/24/how-to-break-ubuntu-in-thirty-seconds/, If you consider that this is relevant and worth discussing, we can add Adam Williamson to the conversation. Otherwise, just mark it as invalid and forget it. On behalf of Adam Williamson [*] adamw@ubuntu510:~$ sudo scp 192.168.2.7:/etc/hosts /etc adamw@ubuntu510:~$ sudo nano /etc/hosts sudo: unable to lookup ubuntu510 via gethostbyname() …yeah, sudo, it’s all very clever until someone loses an eye! I have a bunch of entries in /etc/hosts because of having four local systems plus a bunch of VMware machines etc. So now when I set up a new VMware machine I just copy the /etc/hosts from the real machine over to the VM then edit a couple of lines to match the VM, instead of re-editing it all from scratch. Only, as you can see, this utterly breaks Ubuntu…all I need to do to fix the sudo problem is edit /etc/hosts so 127.0.0.1 is ‘ubuntu510′ (the name of the VM) rather than ‘zen’ (the name of the real machine), but I can’t do it, because sudo doesn’t work… the only way out of this that I can see is single-user mode or the recovery console. Not too smart! Surely sudo shouldn’t ABSOLUTELY NEED to look up the host it’s running on? [*] Originally from http://www.happyassassin.net/2006/02/24/how-to-break-ubuntu-in-thirty-seconds/, If you consider that this is relevant and worth discussing, we can add Adam Williamson to the conversation. Otherwise, just mark it as invalid and forget it. TEST CASE: - This only works (i. e. fails) on a system where /usr/sbin/sendmail does NOT exist (standard Ubuntu installation) - open a terminal and do "sudo -i" to get a root shell; do "hostname foo" - open another terminal, and try "sudo ls". Hardy final will fail with "unable to resolve host foo" and not run the ls. - upgrade sudo to the hardy-proposed version and attempt the same. sudo should still complain, but run the ls command.
2008-04-30 11:29:25 Martin Pitt sudo: status In Progress Fix Committed
2008-04-30 11:29:41 Martin Pitt sudo: status In Progress Fix Committed
2008-04-30 11:29:41 Martin Pitt sudo: milestone ubuntu-8.04.1 intrepid-alpha-1
2008-04-30 11:29:50 Martin Pitt sudo: status Fix Committed In Progress
2008-04-30 11:30:29 Martin Pitt bug added attachment 'sudo.32906.debdiff' (hardy debdiff)
2008-04-30 11:37:37 Martin Pitt bug added subscriber SRU Verification
2008-04-30 11:38:06 Martin Pitt sudo: status In Progress Fix Committed
2008-05-05 18:50:06 Launchpad Janitor sudo: status Fix Committed Fix Released
2008-05-06 06:56:51 Martin Pitt sudo: status Fix Committed Fix Released
2008-05-23 11:33:15 Vikas Bhasin bug added attachment 'unnamed' (unnamed)
2008-06-11 20:32:29 Bug Watch Updater sudo: status Confirmed Fix Released
2009-06-28 10:40:21 Launchpad Janitor branch linked lp:ubuntu/karmic/sudo
2009-06-28 10:45:22 Launchpad Janitor branch linked lp:~ubuntu-branches/ubuntu/hardy/sudo/hardy-proposed
2010-01-04 15:46:56 Juan Sebastián Marulanda sudo (Ubuntu): status Fix Released Confirmed
2010-01-04 15:48:41 Juan Sebastián Marulanda attachment added My /etc/hosts http://launchpadlibrarian.net/37410684/hosts
2010-01-04 16:19:18 Martin Pitt sudo (Ubuntu): status Confirmed Fix Released
2010-01-12 22:37:47 mon removed subscriber mon
2010-06-15 19:01:44 Michael Rooney removed subscriber Michael Rooney
2012-02-23 21:23:44 Kai Kasurinen removed subscriber Kai Kasurinen
2013-03-22 17:58:23 Phosgene removed subscriber Phosgene
2013-12-07 08:00:39 B. Clausius removed subscriber B Clausius
2020-04-25 17:18:34 christopher sudo (Ubuntu): assignee Martin Pitt (pitti)