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. |
|
 |
06-11-2002, 12:12 PM
|
#1
|
|
Member
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124
Rep:
|
lastlog - What is it, and how do I rotate it?
My /var/log/lastlog file is getting mighty huge, and I was wondering how I go about rotating it successfully?
If I ever delete the file, or rename it, or have a logrotate.d file rotate it weekly/daily etc... then I get errors in "/var/log/messages" when logging into the machine that it couldnt properly update lastlog or find it.
The file is sucking down way too many mb, and the server has only been running for three days! I would hate to see how big it gets in a week, or a month of operation.
Any ideas?
|
|
|
|
06-11-2002, 12:40 PM
|
#2
|
|
Guru
Registered: Jan 2001
Posts: 24,128
Rep: 
|
Try this site, as a good example of logrotate: http://www.yolinux.com/TUTORIALS/Lin....html#LOGFILES
Also, have you tried maybe just deleting the lastlog file and recreating it, then restarting the syslogd process (someone correct me if I am wrong on that process) ?
|
|
|
|
04-19-2011, 05:06 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2011
Posts: 14
Rep:
|
Do not rotate lastlog!
According to Wikipedia lastlog should NOT be rotated. (search for "lastlog" inthere)
There is no reason to do that, because it's not that big as "ls -l" shows.
Use "ls -sh" to see real space needed on HDD.
|
|
|
|
04-19-2011, 05:22 AM
|
#4
|
|
Member
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Rep:
|
this thread is like 9 years old (almost)... i don't know it is necessary to answer on these sort of old threads ?
|
|
|
|
04-19-2011, 05:48 AM
|
#5
|
|
Member
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Rep: 
|
Quote:
|
i don't know it is necessary to answer on these sort of old threads ?
|
It's far more preferable to start a new thread. There are a few very rare exceptions, but this isn't one of them.
Replying to an old thread often causes confusion with new info vs. old info, i.e. what once worked (or didn't work) when the thread was started could not work (or work) now, amongst other disparities.
Last edited by MrCode; 04-19-2011 at 05:51 AM.
|
|
|
|
04-19-2011, 06:06 AM
|
#6
|
|
Member
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Rep:
|
Quote:
Originally Posted by MrCode
It's far more preferable to start a new thread. There are a few very rare exceptions, but this isn't one of them.
Replying to an old thread often causes confusion with new info vs. old info, i.e. what once worked (or didn't work) when the thread was started could not work (or work) now, amongst other disparities.
|
that's what i mean... i think it was unnessecary from aasami to answer on this thread?!
|
|
|
|
04-19-2011, 07:38 AM
|
#7
|
|
LQ Newbie
Registered: Mar 2011
Posts: 1
Rep:
|
When you found a solution that works for you, post it so the person who comes after you also know what can be a solution
2) After posting that, mark your thread as SOLVED
3) Don't forget all the people who helped you, even it was a tiny bit -> adding rep to those persons
|
|
|
|
04-19-2011, 07:42 AM
|
#8
|
|
Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,796
|
Quote:
Originally Posted by tradetoprofit
...
|
Hi,
Please, no spam! Reported.
Kind regards,
Eric
Last edited by Tinkster; 04-19-2011 at 12:35 PM.
Reason: Next time please don't stand in a dog-pile, just tell us about it; that way I don't have to delete the post AND your quote
|
|
|
|
04-19-2011, 07:50 AM
|
#9
|
|
Member
Registered: Mar 2011
Location: Belgium
Distribution: CentOS release 5.5 (Final), Red Hat Enterprise Linux ES release 4 (Nahant Update 8)
Posts: 416
Rep:
|
a post to the admins...
can someone of you please CLOSE this thread... there is nothing said here that is relevant to this topic and i don't think there will be any in the future...
|
|
|
|
04-22-2011, 09:45 AM
|
#10
|
|
LQ Newbie
Registered: Apr 2011
Posts: 14
Rep:
|
Why to reply to old threads
The reason I replied to this old thread is, I was looking for the answer to the same question which is asked above, and when I found the answer, I wanted to share it with future visitors of this thread. If I have had found the answer here (in this so old thread) I wouldn't have to look further. I just hope this helped, or will help someone looking for the same.
|
|
|
|
| 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 07:06 AM.
|
|
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
|
|