exam questions

Exam PT0-002 All Questions

View all questions & answers for the PT0-002 exam

Exam PT0-002 topic 1 question 238 discussion

Actual exam question from CompTIA's PT0-002
Question #: 238
Topic #: 1
[All PT0-002 Questions]

A penetration tester was able to compromise a web server and move laterally into a Linux web server. The tester now wants to determine the identity of the last user who signed in to the web server. Which of the following log files will show this activity?

  • A. /var/log/messages
  • B. /var/log/last_user
  • C. /var/log/user_log
  • D. /var/log/lastlog
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
nickwen007
11 months, 1 week ago
/var/log/lastlog is a file that contains information about the last time each user logged in to the system. It is usually used by the system administrator to track when and how users log in.
upvoted 3 times
...
cy_analyst
11 months, 1 week ago
Selected Answer: D
The lastlog file contains information about the last login sessions of users on the system. It records the time and date of the last login, as well as the terminal or source IP address from which the user logged in. The lastlog file is usually only accessible to the root user, but a penetration tester who has gained root access to the system should be able to read it.
upvoted 3 times
...
Frog_Man
11 months, 4 weeks ago
D is correct from web search.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...