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

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
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

You must log in to answer this question.

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