LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-03-2006, 05:39 AM   #1
PirateJack
LQ Newbie
 
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20

Rep: Reputation: 0
record of user sessions


Using RH enterprise 2.1, I want to view who logged in on a certain date.
Anyone know if this is possible?
 
Old 04-03-2006, 06:15 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Have a look at the last command - it should do what you want.
 
Old 04-03-2006, 06:33 AM   #3
PirateJack
LQ Newbie
 
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20

Original Poster
Rep: Reputation: 0
It seems the logfile /var/logs/wtmp is only created the first time you use the last command though, and that is the first time the command has been used it seems!
 
Old 04-03-2006, 06:42 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
It can also be created manually with the touch command - some distros do this as part of the install.
 
Old 04-03-2006, 06:47 AM   #5
PirateJack
LQ Newbie
 
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20

Original Poster
Rep: Reputation: 0
So it would be good practice to use the last command to create the log file after installation?
 
Old 04-03-2006, 02:25 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Yes it would. You can also create lastb as a symbolic link to last and track bad logging attempts. Where last uses /var/log/wtmp (or the -f option to change the file), lastb uses /var/log/btmp.
 
  


Reply



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
Not have to enter password when switching user sessions allelopath SUSE / openSUSE 4 01-02-2006 08:12 PM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
Saving and restoring user sessions apachedude SUSE / openSUSE 0 12-27-2004 06:33 PM
Two X sessions? LinuxSeeker Linux - General 3 04-07-2004 03:39 PM
limiting ssh sessions for a given user breenbaron Linux - Security 2 03-16-2004 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:22 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
Open Source Consulting | Domain Registration