Bug 4647 - rpm -V misses /etc/passwd
rpm -V misses /etc/passwd
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 1999-08-22 02:52 EDT by denbesten
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-08-23 10:29:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description denbesten 1999-08-22 02:52:36 EDT
On both my boxes, rpm -V setup-2.0.2-1 incorrectly believes
/etc/passwd and /etc/group have not changed since they were

Perhaps I am missing something, but shouldn't -V let me know
about changed
files when the change is likely to be the result of a

Also, -V ignores changes to files such as lastlog and tty
Ocassionally, These changes are occasionally important to
some users.
Perhaps -Vv could override the %verify directive in the spec

I was considering a program which eliminates files from
backups if rpm
indicates that the file came from a package and that the
file has not
been changed.  I figure that this could cut my backup size
in half. Perhaps
I am being to ambitious in my expectations from -V.


Bill D.

duruone:~/backup $ rpm -qf /etc/passwd
duruone:~/backup $ rpm -V setup-2.0.2-1
S.5....T c /etc/exports
S.5....T c /etc/hosts.allow
S.5....T c /etc/hosts.deny
S.5....T c /etc/printcap
S.5....T c /etc/profile
..?..... c /etc/securetty
S.5....T c /etc/services
duruone:~/backup $ rpm -qlv setup-2.0.2-1
-rw-r--r--     root     root        723 Feb 18 16:16
-rw-r--r--     root     root          0 Jul 06  1995
-rw-r--r--     root     root        290 Jul 28  1995
-rw-r--r--     root     root         26 Jul 12  1994
-rw-r--r--     root     root        161 Jul 28  1995
-rw-r--r--     root     root        347 Jul 28  1995
-rw-r--r--     root     root          0 Jul 06  1995
-rw-r--r--     root     root        509 Jul 28  1995
-rw-r--r--     root     root        289 Jul 28  1995
-rw-r--r--     root     root        546 Apr 19 15:35
drwxr-xr-x     root     root       1024 Aug 19  1996
-rw-r--r--     root     root       1191 Mar 23 17:10
-rw-------     root     root         40 Sep 04  1995
-rw-r--r--     root     root      11121 Mar 31 19:00
-rw-r--r--     root     root          0 Apr 19 15:39
duruone:~/backup $ ls -l /etc/passwd  /etc/group
-rw-r--r--   1 root     root          595 Jul  3 18:38
-rw-r--r--   1 root     root         1501 Jul  3 18:37
duruone:~/backup $ rpm --version
RPM version 3.0.2
duruone:~/backup $ cat /etc/redhat-release
Red Hat Linux release 6.0 (Hedwig)
Comment 1 Preston Brown 1999-08-23 10:29:59 EDT
the .spec file for setup says the following:

%verify(not md5 size mtime) %config(noreplace) /etc/passwd
%verify(not md5 size mtime) %config(noreplace) /etc/group

This is because when the setup package is upgraded, we don't want to
rename your passwd to passwd.rpmsave (and group in the same way).
This would cause many many problems.

These config files are thus special exceptions.

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