[lug] atime in Fedora 8?

Hugh Brown hugh at math.byu.edu
Tue Mar 18 12:10:27 MDT 2008


On Tue, Mar 18, 2008 at 10:02:16AM -0600, Jeffrey Haemer wrote:
> How do I turn on atime out of Fedora 8?  I've tried two things that I think
> should work
> 
>   chattr -A filename
> 
> and
> 
>   mount -o atime,remount /
> 
> but executing an executable no longer seems to change its atime.  Neither,
> for that matter, does cat on the file itself.
> 
> If I can't turn on atime, can anyone tell me how to tell when a file was
> last executed?
> 
> (For example, if I want to find out whether "rpm -q" is executing
> "/usr/lib/rpm/rpmq", I'd normally do "rpm -q; ls -ul /usr/lib/rpm/rpmq")
> 
> This all seems to work fine on Ubuntu, but not on Fedora 8.  And yes, "rpm
> -q" does execute "/usr/lib/rpm/rpmq" -- but I do feel odd using a Debian
> distro to answer questions about the "Red Hat Package Manager."  :-)
> 

If I wanted to know what rpm -q was executing, I'd run it via strace.

On a Redhat 5.1 box, rpm -q; ls -ul /usr/lib/rpm/rpmq returns an updated timestamp.

Hugh



More information about the LUG mailing list