Re: Yum update changes inode of file

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



Meikel,

Aside from the stupid way:

create a file "org_name"
copy it to new_name
rm org_name
mv new_name org_name

I don't know of a way to change inode
and keep md5 the same.

Does anyone know of a way?

This would be the perfect question for this forum.

GKH

> Hi folks,
>
> on CentOS 6.5 I run tripwire software which verifies data integrity. My
> system is automatically updated by yum (as far as I understand the
> /etc/cron.daily/0yum.cron is responsible for the regular system
> updates). After a system update I'm then notified by tripwire about the
> changes on the file system.
>
> By browsing those tripwire reports I found that there are files which
> did not change at all (i.e. the MD5 hash is the same as before) but the
> inode changed. I do not understand what yum did to the file that
> resulted in an inode change, especially I'm wondering how the inode can
> change although there was no modification on the file at all.
>
> Thanks in advance for any clarification.
>
> Find below an excerpt from the tripwire log (for /etc/nsswitch.conf)
> which shows that only inode changed.
>
> Regards,
>
> Meikel
>
>
>
>
> Excerpt from tripwire report:
>
> Modified object name:  /etc/nsswitch.conf
>
>    Property:            Expected                    Observed
>    -------------        -----------                 -----------
>    Object Type          Regular File                Regular File
>    Device Number        64770                       64770
> * Inode Number         393292                      393686
>    Mode                 -rw-r--r--                  -rw-r--r--
>    Num Links            1                           1
>    UID                  root (0)                    root (0)
>    GID                  root (0)                    root (0)
>    Size                 1688                        1688
>    Modify Time          Tue 04 May 2010 09:22:21 PM CEST
>                                                     Tue 04 May 2010 09:22:21 PM CEST
>    Blocks               8                           8
>    CRC32                DjDI7W                      DjDI7W
>    MD5                  ANYAnN/RJkbSUehjA7wMSM      ANYAnN/RJkbSUehjA7wMSM
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux