[Bug 583338] New: users module *hoses* /etc/passwd and /etc/shadow under certain circumstances
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c0 Summary: users module *hoses* /etc/passwd and /etc/shadow under certain circumstances Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: jsrain@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8 I needed to add my user to a group. I used yast2 users. After completion, everything appeared OK... except 'su -' and 'sudo' no longer worked. For anybody. ssh -l root localhost did not work su - did not work sudo bash did not work Nothing worked. I rebooted into single-user mode and that did work. A brief investigation showed me that all of the passwords in /etc/passwd had been removed. /etc/shadow did not contain passwords, either. No passwords. Comparing the {shadow,passwd} files to their {shadow,passwd}.YaST2save counterparts revealed part of the problem - /etc/passwd did have the passwords in it. I had temporarily disabled shadow passwords with 'pwunconv' at some point. However, I've also added users, changed passwords, and so on using the console 'useradd', 'groupmod' (the standard pwdutils suite) without error for *months*, years even. One use of yast2 users and my passwords would have been lost (except for the backup files. yay backups!). Please fix yast2 users to NOT hose password entries. Does it not just call out to the standard pwdutils utilities? If not, it should. There is a reason why they exist! Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |jsuchome@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c1 --- Comment #1 from Jon Nelson <jnelson-suse@jamponi.net> 2010-02-26 04:31:42 UTC --- NOTE: I did this twice, just to make sure, pulling from backups as necessary. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c2 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |ASSIGNED Summary|users module *hoses* |users module *hoses* |/etc/passwd and /etc/shadow |/etc/passwd and /etc/shadow |under certain circumstances |after pwunconv --- Comment #2 from Jiří Suchomel <jsuchome@novell.com> 2010-02-26 08:16:57 UTC --- Uff, I had no idea something like this exists... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c3 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |kukuk@novell.com --- Comment #3 from Jiří Suchomel <jsuchome@novell.com> 2010-02-26 09:44:45 UTC --- This looks bad, YaST currently is not able to handle empty shadow. Thorsten, should I work on a fix for SP1? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c5 --- Comment #5 from Jiří Suchomel <jsuchome@novell.com> 2010-02-26 14:27:42 UTC --- Created an attachment (id=345241) --> (http://bugzilla.novell.com/attachment.cgi?id=345241) patch for /usr/share/YaST2/modules/UsersPasswd.pm and /usr/share/YaST2/modules/Users.pm Jon, could you please patch these 2 files on your system and try again? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |jnelson-suse@jamponi.net -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c8 Jiří Suchomel <jsuchome@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|jnelson-suse@jamponi.net | Resolution| |FIXED --- Comment #8 from Jiří Suchomel <jsuchome@novell.com> 2010-03-08 10:55:40 UTC --- fixed in SP1 (yast2-users-2.17.35) and Factory -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=583338 http://bugzilla.novell.com/show_bug.cgi?id=583338#c9 --- Comment #9 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (583338) was mentioned in https://build.opensuse.org/request/show/34320 Factory / yast2-users -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com