LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 08-10-2018, 11:46 AM   #1
p12funk
LQ Newbie
 
Registered: Aug 2018
Distribution: LM 18.1, MX linux
Posts: 2

Rep: Reputation: Disabled
wtmp missing


Hi,

I have run linux mint for many years and recently decided to have a look at mx linux. I installed it a few weeks ago and within the last few days just noticed that I cannot run last or lastb. There is no wtmp or btmp file in /var/log I do not remember if I had ever run last on this os before. I don't know if the file existed and was removed or if it was never there. I have since touched both files and it seems to be logging.

My question is: Are wtmp and btmp installed as part of the mx linux system?

I have done quite a bit of searching and have been unable to find the answer.

Thanks!
 
Old 08-10-2018, 12:50 PM   #2
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: Debian, Crux, LFS, AntiX
Posts: 2,053
Blog Entries: 4

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You can create them yourself as root.
Quote:
Originally Posted by Linux From Scratch
touch /var/log/{btmp,lastlog,faillog,wtmp}
chgrp -v utmp /var/log/lastlog
chmod -v 664 /var/log/lastlog
chmod -v 600 /var/log/btmp
 
1 members found this post helpful.
Old 08-13-2018, 12:25 PM   #3
p12funk
LQ Newbie
 
Registered: Aug 2018
Distribution: LM 18.1, MX linux
Posts: 2

Original Poster
Rep: Reputation: Disabled
wtmp missing

Thanks for the response Hazel! I had already touched the files before posting. Logging now seems to be enabled.

My question though was: Are wtmp and btmp installed as part of the mx linux system?

Not knowing the answer to that, I cannot say if last and lastb were removed from the system or were never there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
utmp and wtmp missing -32bit current the_penguinator Slackware 2 12-05-2010 03:20 PM
WTMP parsing slerena Linux - General 2 05-15-2008 04:10 AM
WTMP - last command EthanB Linux - Security 1 09-14-2004 09:30 PM
utmp, wtmp Xavius Linux - Newbie 3 04-11-2004 08:29 AM
using wtmp Peter Santiago Linux - General 0 01-07-2002 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration