Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: bastille : security hardening tool in ubuntu...

  1. #1
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Red face bastille : security hardening tool in ubuntu...

    Hello friends,

    I have recently installed bastille, a security hardening tool from synaptic. But after setting all the configurations according to my suite, bastille is showing some error messages.

    Can anyone help me in curing or rectification of these errors...

    {Tue Nov 11 15:01:25 2008} Failed to place /psad as /usr/sbin/psad
    {Tue Nov 11 15:01:25 2008} Failed to place /psadwatchd as /usr/sbin/psadwatchd
    {Tue Nov 11 15:01:25 2008} Failed to place /kmsgsd as /usr/sbin/kmsgsd
    {Tue Nov 11 15:01:25 2008} Failed to place /diskmond as /usr/sbin/diskmond
    {Tue Nov 11 15:01:25 2008} #ERROR: chmod: File /usr/sbin/diskmond doesn't exist!
    {Tue Nov 11 15:01:25 2008} Failed to place /psad-init as /etc/rc.d/init.d/psad
    {Tue Nov 11 15:01:25 2008} #ERROR: chmod: File /etc/rc.d/init.d/psad doesn't exist!
    {Tue Nov 11 15:01:25 2008} Failed to place /whois as /usr/bin/whois.psad
    {Tue Nov 11 15:01:27 2008} #ERROR: chmod: File /usr/bin/g++ doesn't exist!
    {Tue Nov 11 15:01:27 2008} ERROR: Unable to delete Bastille lock file: /var/lock/bastille/bastille-lock
    {Tue Nov 11 15:05:35 2008} ERROR: A fatal error has occurred. Not all of the questions
    that pertain to this system have been answered. Rerun
    the interactive portion of bastille on this system.
    MODULE.QUESTION=FilePermissions.suidprint
    {Tue Nov 11 15:16:40 2008} Failed to place /psad as /usr/sbin/psad
    {Tue Nov 11 15:16:41 2008} Failed to place /psadwatchd as /usr/sbin/psadwatchd
    {Tue Nov 11 15:16:41 2008} Failed to place /kmsgsd as /usr/sbin/kmsgsd
    {Tue Nov 11 15:16:41 2008} Failed to place /diskmond as /usr/sbin/diskmond
    {Tue Nov 11 15:16:41 2008} #ERROR: chmod: File /usr/sbin/diskmond doesn't exist!
    {Tue Nov 11 15:16:41 2008} Failed to place /psad-init as /etc/rc.d/init.d/psad
    {Tue Nov 11 15:16:41 2008} #ERROR: chmod: File /etc/rc.d/init.d/psad doesn't exist!
    {Tue Nov 11 15:16:41 2008} Failed to place /whois as /usr/bin/whois.psad
    {Tue Nov 11 15:16:43 2008} #ERROR: chmod: File /usr/bin/g++ doesn't exist!
    {Tue Nov 11 15:16:43 2008} ERROR: Unable to delete Bastille lock file: /var/lock/bastille/bastille-lock
    {Tue Nov 11 15:19:00 2008} Failed to place /psad as /usr/sbin/psad
    {Tue Nov 11 15:19:00 2008} Failed to place /psadwatchd as /usr/sbin/psadwatchd
    {Tue Nov 11 15:19:00 2008} Failed to place /kmsgsd as /usr/sbin/kmsgsd
    {Tue Nov 11 15:19:00 2008} Failed to place /diskmond as /usr/sbin/diskmond
    {Tue Nov 11 15:19:00 2008} #ERROR: chmod: File /usr/sbin/diskmond doesn't exist!
    {Tue Nov 11 15:19:00 2008} Failed to place /psad-init as /etc/rc.d/init.d/psad
    {Tue Nov 11 15:19:00 2008} #ERROR: chmod: File /etc/rc.d/init.d/psad doesn't exist!
    {Tue Nov 11 15:19:00 2008} Failed to place /whois as /usr/bin/whois.psad
    {Tue Nov 11 15:19:03 2008} #ERROR: chmod: File /usr/bin/g++ doesn't exist!
    {Tue Nov 11 15:19:03 2008} ERROR: Unable to delete Bastille lock file: /var/lock/bastille/bastille-lock
    {Tue Nov 11 15:24:03 2008} #ERROR: chmod: File /usr/bin/g++ doesn't exist!
    {Tue Nov 11 15:24:03 2008} ERROR: Unable to delete Bastille lock file: /var/lock/bastille/bastille-lock
    Controlling complexity is the essence of computer programming. - Brian

  2. #2
    Join Date
    Jun 2007
    Beans
    48

    Re: bastille : security hardening tool in ubuntu...

    Quote Originally Posted by etdsbastar View Post
    ...
    Can anyone help me in curing or rectification of these errors...
    It's been a while when I used to use bastille for the last time, but from the messages it seems you haven't configured it properly. There are questions you are supposed to answer in interactive mode when setting bastille up.

    BTW, bastille, harden and other hardening tools do make sense when installed on a clean system, immediately after a clean install and during configuration of the system. If installed subsequently, on a possibly already compromised box, they can make false feeling of security.

  3. #3
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: bastille : security hardening tool in ubuntu...

    Quote Originally Posted by etdsbastar View Post
    Hello friends,

    I have recently installed bastille, a security hardening tool from synaptic. But after setting all the configurations according to my suite, bastille is showing some error messages.

    Can anyone help me in curing or rectification of these errors...
    Looks like the bastille script can't execute what it wants to, probably due to a lack of permissions.
    Did you run it as root / with sudo ?

  4. #4
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question Re: bastille : security hardening tool in ubuntu...

    Quote Originally Posted by koenn View Post
    Looks like the bastille script can't execute what it wants to, probably due to a lack of permissions.
    Did you run it as root / with sudo ?
    Ya,,, I ran it with sudo but the same problem occured.

    Even I tried: bastille -b with root.

    the same problem occured.
    Controlling complexity is the essence of computer programming. - Brian

  5. #5
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: bastille : security hardening tool in ubuntu...

    hm, most of those files the log complains about don't even exist on my pc (some do, but I may have installed them separately).
    Looks as if bastille wants to do things that won't work on a default ubuntu system, or you made a bad choice somewhere in the configuration run ...

  6. #6
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: bastille : security hardening tool in ubuntu...

    can i have another choice of solution.... please
    Controlling complexity is the essence of computer programming. - Brian

  7. #7
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: bastille : security hardening tool in ubuntu...

    Did you run:

    Code:
    /usr/sbin/InteractiveBastille -c
    This will walk you through setting up Bastille.

    From Synaptic:

    If run in the (recommended) Interactive mode, Bastille
    educates the administrator during the hardening process:
    in each step of the process, extensive descriptions are
    given of what security issues are involved. Each step is
    optional. If run in the quicker Automated mode, Bastille
    hardens the system according the profile chosen.
    Jim

  8. #8
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: bastille : security hardening tool in ubuntu...

    Not to be rude (don't take this the wrong way please) , but why are you installing something like bastille without reading the documentation ?

    I highly advise against this course of action if you do not know what you are doing.

    https://help.ubuntu.com/community/BastilleLinux
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #9
    Join Date
    Oct 2008
    Location
    INDIA
    Beans
    331
    Distro
    Ubuntu 12.04 Precise Pangolin

    Cool Re: bastille : security hardening tool in ubuntu...

    Quote Originally Posted by bodhi.zazen View Post
    Not to be rude (don't take this the wrong way please) , but why are you installing something like bastille without reading the documentation ?

    I highly advise against this course of action if you do not know what you are doing.

    https://help.ubuntu.com/community/BastilleLinux
    Dear, then what should I do to harden the security of my system.

    Is there any other option. Please specify.
    Controlling complexity is the essence of computer programming. - Brian

  10. #10
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: bastille : security hardening tool in ubuntu...

    Quote Originally Posted by etdsbastar View Post
    Dear, then what should I do to harden the security of my system.

    Is there any other option. Please specify.
    Security is an active process, there is no substitution for reading and education.

    The "problem" with bastille, IMO, is that it will make changes to your system that may be difficult to undo. IMO you therefore need very much read and understand the installation and configuration. Even more so if you are getting error messages.

    There are many many many ways to harden your system, see the stickies on the top of these forums, including the thread on snort and OSSEC. These may not be for you, and if not there are many other options.

    See also : http://www.debian.org/doc/manuals/se...-debian-howto/
    Last edited by bodhi.zazen; November 18th, 2008 at 07:04 PM.
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •