sudo overwrites sudoers after dist-upgrade
Bug #761689 reported by
Ahmed Soliman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Fix Released
|
Critical
|
Michael Vogt | ||
Natty |
Fix Released
|
Critical
|
Michael Vogt |
Bug Description
Binary package hint: sudo
start with ami-46906c2f on amazon ec2, apt-get update; apt-get dist-upgrade; reboot
and sudo asks for a password.
This probably happens because sudoers is overwritten and we lose the 'ubuntu' user entry
Related branches
tags: | added: ec2-images uec-images |
Changed in sudo (Ubuntu): | |
milestone: | ubuntu-11.10 → ubuntu-11.04 |
description: | updated |
Changed in sudo (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Michael Vogt (mvo) |
To post a comment you must log in.
I can confirm this.
I'm not really sure how this fails, or why we didn't see it before. It would seem to be a regression (by changelog inspection) 1.7.4p4-5ubuntu5 .
ec2-images have a custom /etc/sudoers. It takes the default sudoers (well, a default from some point) and adds
|
| # ubuntu user is default user in ec2-images.
| # It needs passwordless sudo functionality.
| ubuntu ALL=(ALL) NOPASSWD:ALL
The images most certainly should use a sudoers.d entry, but I dont think that this existed at some point in the past, or I wasn't aware of it. Either way, this completely breaks instance as there is no other way into root by default.