LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2008, 03:10 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
How do I specify the location for lastlog for chkrootkit?


How do I specify the location for lastlog for chkrootkit?

When I run chklastlog, it trying to look at /var/adm/lastlog and not /var/log/lastlog
# ./chklastlog
unable to open lastlog-file /var/adm/lastlog

How do I get it to look in /var/log/lastlog ?

TIA
 
Old 04-07-2008, 08:33 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
You may have a configuration file somewhere in which you can specify the log file name and location. You may also have to specify the log file name and location as an installation option.

I don't know. I don't use chkrootkit. I would first look into chkrootkit installation instructions to try to resolve this question.

Edit: I've just looked into the source code. The lastlog location is hard coded in chklastlog.c.

So, if you installed from rpm, you're stuck with it unless you get a .src.rpm, edit the file named above, and conpile your own rpm.

Or, you can get the tarball and edit the file, then use checkinstall to build an rpm for you when you compile the source code.

Last edited by bigrigdriver; 04-07-2008 at 08:47 AM.
 
Old 04-08-2008, 09:58 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Else try creating a link from /var/adm to /var/log?
 
  


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
Lastlog script help yanik Solaris / OpenSolaris 7 10-02-2007 03:39 PM
lastlog November11 Programming 2 01-10-2007 07:47 PM
lastlog nayabingi Linux - General 2 12-02-2006 04:57 PM
chkrootkit / lastlog Mr. Gone Linux - Security 4 10-13-2005 11:50 AM
lastlog command iquadri1 Linux - Networking 0 09-29-2001 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:24 PM.

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