[Bug 1067800] [NEW] visudo doesn't show error message

thouters 1067800 at bugs.launchpad.net
Wed Oct 17 16:43:05 UTC 2012


Public bug reported:

I added a line to the sudoers file with "sudo visudo"
when I exited vim, I was presented with this options menu, but never
saw a message that the config I wrote is corrupt!  I ignored the DANGER
because I *asumed* (my bad) that the authors are paranoid about saving their config file.

thomas at thomas-VirtualBox ~ % sudo visudo
[sudo] password for thomas:
(... editting)
(I ran a which openocd command from vim, thus the next lines)
[No write since last change]
/usr/bin/openocd

Press ENTER or type command to continue
(editting... :wq)
What now?
Options are:
  (e)dit sudoers file again
  e(x)it without saving changes to sudoers file
  (Q)uit and save changes to sudoers file (DANGER!)

What now? e
What now? q
Options are:
  (e)dit sudoers file again
  e(x)it without saving changes to sudoers file
  (Q)uit and save changes to sudoers file (DANGER!)

This is on the ubuntu beta
thomas at thomas-VirtualBox ~ % lsb_release -rd
Description:    Ubuntu 12.10
Release:        12.10

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1067800

Title:
  visudo doesn't show error message

Status in “sudo” package in Ubuntu:
  New

Bug description:
  I added a line to the sudoers file with "sudo visudo"
  when I exited vim, I was presented with this options menu, but never
  saw a message that the config I wrote is corrupt!  I ignored the DANGER
  because I *asumed* (my bad) that the authors are paranoid about saving their config file.

  thomas at thomas-VirtualBox ~ % sudo visudo
  [sudo] password for thomas:
  (... editting)
  (I ran a which openocd command from vim, thus the next lines)
  [No write since last change]
  /usr/bin/openocd

  Press ENTER or type command to continue
  (editting... :wq)
  What now?
  Options are:
    (e)dit sudoers file again
    e(x)it without saving changes to sudoers file
    (Q)uit and save changes to sudoers file (DANGER!)

  What now? e
  What now? q
  Options are:
    (e)dit sudoers file again
    e(x)it without saving changes to sudoers file
    (Q)uit and save changes to sudoers file (DANGER!)

  This is on the ubuntu beta
  thomas at thomas-VirtualBox ~ % lsb_release -rd
  Description:    Ubuntu 12.10
  Release:        12.10

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1067800/+subscriptions




More information about the foundations-bugs mailing list