Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In OSX, I can get login history and account usage :

  • The command ac -p gives total login time of users on a machine.
  • The command last gives history of login on the machine.

How do I reset these informations?

Documentation points to /var/run/utmpx but erasing the file has no apparent effect. Directory /var/account/ which should contain a lot of interesting stuff does not exist either.

Update:

After stumbling on the opensnoop command, I found out that the history is stored in /var/log/asl/*.asl. Deleting these files does the job.

share|improve this question
    
Even if you find a solution yourself, please post it as an answer below. –  grawity May 10 '12 at 16:09

1 Answer 1

up vote 1 down vote accepted

Login information is stored in the Apple System Log.

Erasing /var/log/asl/*.asl clears the log files containing (among other things) the login history.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.