Bug 12064 - setup rpm update offers to empty /etc/fstab and /etc/shadow
Summary: setup rpm update offers to empty /etc/fstab and /etc/shadow
Status: RESOLVED DUPLICATE of bug 12006
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal critical
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-20 17:59 CET by Pierre Fortin
Modified: 2014-10-07 10:08 CEST (History)
2 users (show)

See Also:
Source RPM: rpmdrake
CVE:
Status comment:


Attachments

Description Pierre Fortin 2013-12-20 17:59:36 CET
Description of problem:  applied updates to mga4 and installer offered to clobber my /etc/fstab.  

Not sure if this should be Normal or Major -- chose Major because it puts users too close to losing /etc/fstab


Version-Release number of selected component (if applicable):


How reproducible:  not sure


Steps to Reproduce:
1. apply updates
2. installation finishes and gives: setup-2.7.20-9.mga4.noarch:/etc/fstab

Original fstab:

# Entry for /dev/sda1 :
UUID=2a81ed6c-73e3-4a97-9727-a169c5ce0287 / ext4 acl,noatime 1 1
# Entry for /dev/sda6 :
UUID=08a92e95-f14b-452f-bca6-516ed70b4fb3 /home ext4 acl,noatime 1 2
# Entry for /dev/sdc1 : ## not usually mounted
#UUID=85B0-3276 /media/windows vfat umask=000,iocharset=utf8 0 0
# Entry for /dev/sdb2 :
#UUID=877dc6c1-6916-4494-8cb5-8ac3bdc34083 /mnt/hd ext4 noatime,acl 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=b39a52e4-9d9a-44a1-8734-36abcf9f1489 swap swap defaults 0 0


fstab.rpmnew:

none /proc proc defaults 0 0

Changes:

--- /etc/fstab	2013-12-03 22:01:02.256205988 -0500
+++ /etc/fstab.rpmnew	2012-03-15 15:08:24.000000000 -0400
@@ -1,11 +1 @@
-# Entry for /dev/sda1 :
-UUID=2a81ed6c-73e3-4a97-9727-a169c5ce0287 / ext4 acl,noatime 1 1
-# Entry for /dev/sda6 :
-UUID=08a92e95-f14b-452f-bca6-516ed70b4fb3 /home ext4 acl,noatime 1 2
-# Entry for /dev/sdc1 :
-#UUID=85B0-3276 /media/windows vfat umask=000,iocharset=utf8 0 0
-# Entry for /dev/sdb2 :
-#UUID=877dc6c1-6916-4494-8cb5-8ac3bdc34083 /mnt/hd ext4 noatime,acl 1 2
 none /proc proc defaults 0 0
-# Entry for /dev/sda5 :
-UUID=b39a52e4-9d9a-44a1-8734-36abcf9f1489 swap swap defaults 0 0


Reproducible: 

Steps to Reproduce:
Comment 1 Pierre Fortin 2013-12-20 18:04:05 CET
The same update also offered to change my /etc/shadow to this:

root:*:16053:0:99999:7:::
bin:*:16053:0:99999:7:::
daemon:*:16053:0:99999:7:::
adm:*:16053:0:99999:7:::
lp:*:16053:0:99999:7:::
sync:*:16053:0:99999:7:::
mail:*:16053:0:99999:7:::
news:*:16053:0:99999:7:::
uucp:*:16053:0:99999:7:::
operator:*:16053:0:99999:7:::
games:*:16053:0:99999:7:::
nobody:*:16053:0:99999:7:::

which would make the system unusable with no way to login -- the root password would be removed and all my userids removed also...
Comment 2 Thierry Vignaud 2013-12-20 19:20:54 CET
You mean you did a live upgrade with rpmdrake & MgaUpdate? Not with the classic DVD installer?

Keywords: (none) => NEEDINFO
CC: (none) => thierry.vignaud

Comment 3 Pierre Fortin 2013-12-20 20:14:16 CET
If you mean mcc's "Software Management->Update your system"; then yes. Just Like I've always done -- I never use DVD installs.
Comment 4 Thierry Vignaud 2013-12-20 20:58:43 CET
Humm, it's not supposed to offer people to merge changes for /etc/fstab or shadow...
Comment 5 Pierre Fortin 2013-12-20 21:24:49 CET
Agree.. especially with mostly empty files...  Got what you need? Or do you need me to send along the list of packages that got updated all at once (~480 since I got busy for about a week)?
Comment 6 Manuel Hiebel 2013-12-30 02:46:44 CET
well it's the setup rpm no ?

looks not blocker as I think it's not updated in a stable release

Keywords: NEEDINFO => (none)
Component: Installer => RPM Packages
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=12006
Summary: update offers to empty /etc/fstab => setup rpm update offers to empty /etc/fstab and /etc/shadow
Source RPM: (none) => setup,
Severity: major => critical

Comment 7 Thierry Vignaud 2013-12-30 02:55:59 CET
Dup

*** This bug has been marked as a duplicate of bug 12006 ***

Status: NEW => RESOLVED
See Also: https://bugs.mageia.org/show_bug.cgi?id=12006 => (none)
Resolution: (none) => DUPLICATE
Source RPM: setup, => rpmdrake

Meg Skywalker 2014-10-07 10:08:19 CEST

CC: (none) => identity.mageia.org
See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=14089


Note You need to log in before you can comment on or make changes to this bug.