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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
04-03-2006, 05:39 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20
Rep:
|
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?
|
|
|
|
04-03-2006, 06:15 AM
|
#2
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
Have a look at the last command - it should do what you want.
|
|
|
|
04-03-2006, 06:33 AM
|
#3
|
|
LQ Newbie
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20
Original Poster
Rep:
|
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!
|
|
|
|
04-03-2006, 06:42 AM
|
#4
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
It can also be created manually with the touch command - some distros do this as part of the install.
|
|
|
|
04-03-2006, 06:47 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2005
Location: London, England
Distribution: RHEL3
Posts: 20
Original Poster
Rep:
|
So it would be good practice to use the last command to create the log file after installation?
|
|
|
|
04-03-2006, 02:25 PM
|
#6
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,084
Rep: 
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:01 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|