Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

stat will report the last access time, last data modification time, and last file status change time.

utimes will allow one to set the last access time and last data modification time.

Is there a function that allows one to set the last file status change time?

share|improve this question
up vote 1 down vote accepted

st_ctime is updated whenever you change the file's names (move/rename/hardlink), ownership (chown/chgrp) or permissions (chmod/setfacl). There is no way to set this field to an arbitrary timestamp.

share|improve this answer
Well, there must be a way to set the timestamp because it changes - so some piece of code must be doing it somewhere. But, I agree, there doesn't appear to be any publicly accessible way to do it. – ericgorr Aug 26 '11 at 12:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .