LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 06: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, 07:15 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
Have a look at the last command - it should do what you want.
 
Old 04-03-2006, 07: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, 07:42 AM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
It can also be created manually with the touch command - some distros do this as part of the install.
 
Old 04-03-2006, 07: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, 03:25 PM   #6
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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


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


All times are GMT -5. The time now is 09:43 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration