LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 04-19-2010, 04:08 PM   #1
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Rep: Reputation: 16
BLFS Tripwire 2.4.1.2 - twadmin Command not found


I have now made it to BLFS, after installing Tripwire-2.4.1.2 and trying to begin the config with the code.

Code:
twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
    /etc/tripwire/twpol.txt &&
tripwire --init
I get...

bash: twadmin: command not found

Any ideas why twadmin is not found?
 
Old 04-20-2010, 02:00 AM   #2
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

If twadmin cannot be found it looks like it wasn't installed correctly. Did you take care of the Warning that's mentioned in the Tripwire chapter (The MTA related one)?

Check the /usr/sbin directory, twadmin should be in that directory.

Hope this helps.
 
Old 04-20-2010, 02:09 PM   #3
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
Re:

Yes I did, I check in /usr/sbin and it is there. To get it to work right I had to use...
Code:
./twadmin --create-polfile --site-keyfile /etc/tripwire/site.key \
    /etc/tripwire/twpol.txt &&
./tripwire --init
The ./ made it work
 
Old 04-20-2010, 02:30 PM   #4
anon237
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

You did make it work, but /usr/sbin should be part of your root account PATH setting! Don't continue untill you get this fixed. Check your PATH setting and revisit the "The Bash Shell Startup Files" section (lots of PATH related stuff is done there).

For root, these should be there (a bare minimum):

/sbin
/usr/sbin
/bin
/usr/bin

Maybe you want/need to add /usr/local/bin and /usr/local/sbin.

Some of the packages you (might) install from the BLFS book do add to the PATH variable. If so, the chapter will tell you how to do so.

Hope this helps.
 
Old 04-20-2010, 03:31 PM   #5
BrandonJ
Member
 
Registered: Mar 2010
Posts: 33

Original Poster
Rep: Reputation: 16
Re:

Thanks, In a different dir I typed in twadmin just to see if it worked and it does. No command not found error.
 
  


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
Tripwire found rootkit? super-mouse Linux - Security 3 08-30-2006 11:03 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
tripwire reports /usr/sbin/tripwire changed alfaalfabeta Linux - Security 5 07-22-2003 05:52 PM
tripwire not found? nixdisciple Linux - Security 2 06-18-2002 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:33 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