why would "rpm -V setup" show /etc/fstab with changed mode?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  another question based on something that tripped me up last week
teaching, when i tried a simple demo and was confused by the result.

  was demonstrating how "rpm -V" could verify an installed package,
and randomly chose the "setup" package since it consists of numerous
fundamental system files for which some errors in verification would
be cause for concern, and got the following on my F27 system:

  $ rpm -V setup
  .M.......  c /etc/fstab
  S.5....T.  c /etc/printcap
  S.5....T.  c /etc/profile
  .M....G..  g /var/log/lastlog
  $

i have no problem with files whose contents will invariably change
after further configuration, but i was confused about the "M" flag
for /etc/fstab, suggesting that the mode (type/permissions) for that
file were different from the installation values.

  as i see it, why should any system config file like /etc/fstab
change its mode after installation? shouldn't a file like that be
installed with the correct mode from the beginning?

  i took a look at the spec file for that package here:

https://src.fedoraproject.org/rpms/setup/blob/master/f/setup.spec

and i notice that other files, after being "touch"ed, are chmoded to
0644, but not /etc/fstab/, whose current mode on my system is 0664:

  -rw-rw-r--. 1 root root 628 Jan 14  2016 /etc/fstab

as a test, i chmod'ed /etc/fstab to 0644, and the verify diagnostic
went away.

  i realize this discrepancy isn't a problem -- things will continue
to work just fine -- but it seems unnecessary to generate a
superfluous "rpm -V" line for /etc/fstab if it were installed with
non-matching mode in the first place.

  is there some reason for the above? am i missing something?

rday
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux