-
Notifications
You must be signed in to change notification settings - Fork 168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change sed to not modify /etc/sudoers comments #78
Conversation
Can one of the admins verify this patch? |
lgtm, thanks. @lpancescu thoughts ? |
ok to test |
I just extracted the original
I see that |
It looks like it's fixed in sudo-1.8.6p7-18.el7, see https://bugzilla.redhat.com/show_bug.cgi?id=1196451 . I hadn't realized it had already been removed in 6.8. I've updated to include your suggestions, but feel free to close this request and we can just wait until RHEL 7.3 to see if it can be dropped completely. |
@mvermaes Thanks! It's just a cosmetic issue, so I'm okay both ways (we could merge it, if we already invested the time - this would also allow us to mark issue #78 as fixed). With RHEL betas typically taking around two months, plus some additional delay in rebuilding, I guess we might have another 2-3 monthly Vagrant releases until we get the sudo fix. |
I'll leave it up to you then. As you said, it's only cosmetic anyway - it just bothered me that it wasn't quite correct :) |
Another way is to leave /etc/sudoers alone all together and put this in the /etc/sudoers.d/vagrant file which you already have created:
|
Good point, I think that would have been a better way to handle it. In any case, I tested on RHEL 7.3 and it includes sudo 1.8.6p7-20 which has removed this line per the ticket. Closing the issue. |
This should fix #79 by only matching non-comment lines.