<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: inode timestamp in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905885#M837709</link>
    <description>Thanks.</description>
    <pubDate>Mon, 06 Jun 2005 19:24:07 GMT</pubDate>
    <dc:creator>Ridzuan Zakaria</dc:creator>
    <dc:date>2005-06-06T19:24:07Z</dc:date>
    <item>
      <title>inode timestamp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905883#M837707</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I have a script that run everyday to reset files/directory permission to comply with our company information protection (IP) standard. The script use "chmod" as well as "find" command reset file permission. Regardless of what is the current file permission the script will attemp to reset them. &lt;BR /&gt;&lt;BR /&gt;For example, the script will set "lsnrctl" file to 750 eventhough the current permission is 750.&lt;BR /&gt;&lt;BR /&gt;Recently we are implementing legato incremental backup. The backup look for inode timestamp to check for changes. Unfornately "chmod" does change the inode timestamp. As a result the incremental backup become full backup due to inode timestamp got change by my IP script. &lt;BR /&gt;&lt;BR /&gt;I am trying to be selective by changing only files that do not compile with IP standard using the following command. Unfortunately this commmad still change inode timestamp.&lt;BR /&gt;&lt;BR /&gt;find /oracle -perm -o-w -exec chmod o-w {} \;&lt;BR /&gt;&lt;BR /&gt;What command should I use perform the above task.&lt;BR /&gt;&lt;BR /&gt;Any hepls is greatly appreciate.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2005 17:02:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905883#M837707</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2005-06-06T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: inode timestamp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905884#M837708</link>
      <description>There are 3 timestamps stored in each inode: 1) access time 2) modification time -- last time the CONTENTS of the file were changed 3) change time -- last time the mode, group, and/or ownership was changed. By definition, the chmod command changes the change time.&lt;BR /&gt;&lt;BR /&gt;What you have to do is capture the ctime BEFORE the chmod and then restore it afterwards.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# filefixer.sh&lt;BR /&gt;INFILE=${1}&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;PID=${$}&lt;BR /&gt;REF_FILE=${TDIR}/X${PID}&lt;BR /&gt;&lt;BR /&gt;touch -r ${INFILE} ${REF_FILE} # save the metadata&lt;BR /&gt;chmod 750 ${INFILE}&lt;BR /&gt;touch -c -r ${REF_FILE} ${INFILE} # restore the metadata&lt;BR /&gt;rm -f ${REF_FILE}&lt;BR /&gt;&lt;BR /&gt;your -exec now becomes -exec filefixer.sh {} \;&lt;BR /&gt;This is untested but it should work. I would do this in Perl using the File::Find and stat functions.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Jun 2005 17:45:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905884#M837708</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-06-06T17:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: inode timestamp</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905885#M837709</link>
      <description>Thanks.</description>
      <pubDate>Mon, 06 Jun 2005 19:24:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/inode-timestamp/m-p/4905885#M837709</guid>
      <dc:creator>Ridzuan Zakaria</dc:creator>
      <dc:date>2005-06-06T19:24:07Z</dc:date>
    </item>
  </channel>
</rss>

