Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8877039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:22:15+00:00 2026-06-14T19:22:15+00:00

I just got an Amazon EC2 micro instance with Ubuntu 12.04. The problem is

  • 0

I just got an Amazon EC2 micro instance with Ubuntu 12.04.
The problem is that the last command isn’t working …

The error message is :

last: /var/log/wtmp: No such file or directory
Perhaps this file was removed by the operator to prevent logging last info.

Thanks in advance !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:22:16+00:00Added an answer on June 14, 2026 at 7:22 pm

    You most likely cleaned up your system logs in the /var/log/ folder a bit too carefully.
    This is not a big deal to solve.

    Step 1: Recreate the file using the following command

    sudo touch /var/log/wtmp
    

    Step 2: Set proper permissions

    sudo chown root:utmp /var/log/wtmp
    sudo chmod 0664 /var/log/wtmp
    

    Late edit:

    Question in the comments:

    I’m pretty sure I didn’t delete that particular one, can it be sign of an intrusion

    The file is a log file used by the linux command last which

    displays a list of all users logged in (and
    out) since that file was created

    Sure – If I would be the intruder and I want to remove any signs of my visit I would probably remove my login from this log file, but most likely I would not delete the whole file as this would be a sign of intrusion. If I don’t care and just want to wipe my trace I might just destroy the whole machine instead.

    More likely reason for the missing reason is described in the book Hardening Linux by James Turnbull when talking about last and lastb

    To start collecting the data required to populate the output of these commands, you need to create a couple of files to hold the data. Some distributions automatically create these files, but others require them to be created manually.

    I am not a forensic expert, so I could not tell you how to detect an intrusion and I can’t tell for sure you’ve not be the target of a hack, but personally I believe the described reason might be more realistic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just got a Amazon EC2 Server and noticed that I can only connect
Just started using EC2, launched the instance with Amazon Linux AMI, installed my web
I'm running an Amazon EC2 'Large' instance - Ubuntu Natty x64 with PHP5 and
I've just created a windows EC2 instance. I got the password and downloaded the
Just got a strange error. Working on project using JUnit and Maven 3.0.3 I've
I've created a new linux instance on Amazon EC2, and as part of that
i just got a call from Hosting company, they claimed that my application creates
I'm just starting to work with boto to connect to Amazon CloudSearch. I got
Just got a FloatDomainError in my app, with the message NaN where the server
Just got a request from my boss for an application I'm working on. Basically

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.