Merge lp:~tom-gall/linaro/fix-728674-live-helper.config.natty.alip into lp:~linaro-maintainers/linaro/live-helper.config.natty.alip
Proposed by
Tom Gall
Status: | Merged |
---|---|
Merged at revision: | 62 |
Proposed branch: | lp:~tom-gall/linaro/fix-728674-live-helper.config.natty.alip |
Merge into: | lp:~linaro-maintainers/linaro/live-helper.config.natty.alip |
Diff against target: |
24 lines (+11/-2) 1 file modified
chroot_local-hooks/03-check_sudoers_for_admin.sh (+11/-2) |
To merge this branch: | bzr merge lp:~tom-gall/linaro/fix-728674-live-helper.config.natty.alip |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tom Gall | Pending | ||
Linaro Maintainers | Pending | ||
Review via email: mp+52359@code.launchpad.net |
This proposal supersedes a proposal from 2011-03-06.
Description of the change
Adjust chroot_
Further this script also uses sed to blindly change the %admin line in sudoers which will address the case IF we did not put it there. It does also just redo the change we just did if we are the origin of the %admin line in sudos. BFHD.
To post a comment you must log in.
On Sun, Mar 06, 2011 at 08:01:40PM -0000, Tom Gall wrote:
> echo "# Members of the admin group may gain root privileges" >> /etc/sudoers
> - echo "%admin ALL=(ALL) ALL" >> /etc/sudoers
> + echo "%admin ALL = NOPASSWD: ALL" >> /etc/sudoers
> fi
This drops the (ALL) from the existing line. Any reason not to make this
%admin ALL=(ALL) NOPASSWD: ALL
and keep the runas part here for consistency?