[Bug 439164] New: Sudo unusable after using yast to edit it
https://bugzilla.novell.com/show_bug.cgi?id=439164 Summary: Sudo unusable after using yast to edit it Product: openSUSE 11.1 Version: Beta 3 Platform: Other OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: sdelcroix@novell.com QAContact: jsrain@novell.com Found By: --- the "Sudo" tool in yast2 writes the rules in an inappropriate order, making sudo unusable. basically, after adding a rule using the tool, /etc/sudoers looks like this: [...] sde ALL = (ALL) NOPASSWD: /usr/bin/zypper ALL ALL = (ALL) ALL [...] and sudo keeps asking for a pasword. swapping the lines order to ALL ALL = (ALL) ALL sde ALL = (ALL) NOPASSWD: /usr/bin/zypper fixes it. Note that opening the file with the yast-sudo tool reshuffle the file :( -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439164
User mseben@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439164#c1
Michal Seben
https://bugzilla.novell.com/show_bug.cgi?id=439164
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439164#c2
Stephane Delcroix
https://bugzilla.novell.com/show_bug.cgi?id=439164
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=439164
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439164#c3
--- Comment #3 from Stephane Delcroix
https://bugzilla.novell.com/show_bug.cgi?id=439164
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439164#c4
Katarina Machalkova
this is a really annoying issue. any update ?
Agreed. It has been reported already against openSUSE 11.0, but far too late for submitting fix to the final release. The reason why it works this way is that map (associative container) is used to store information about sudo rules with user names as keys and it is always sorted alphabetically. This must be changed to list (or something non-associative), but the change is rather big and non-trivial and it has to be properly tested -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=439164
User sdelcroix@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=439164#c5
--- Comment #5 from Stephane Delcroix
and it has to be properly tested
anything, even untested, is better than the current situation where 1)nothing works, 2)the tool corrupt working sudoers file it looks like it's more an issue of writing the patch than testing it :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com