AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  dnf install of rkhunter can not find common binaries in /bin

    Posted Tue January 18, 2022 01:12 AM

    I installed rkhunter and created the scriptdir and updated the .conf so it would not error on that.

    Seems to be unable to find common OS utilities even though they are in the path.

    Any ideas on whats missing? This is my first time using the toolbox version (previously used the github version and install scripts).

    =>dnf install rkhunter
    Last metadata expiration check: 1:03:52 ago on Mon Jan 17 17:47:24 EST 2022.
    Dependencies resolved.
    ================================================================================
     Package          Architecture  Version         Repository                 Size
    ================================================================================
    Installing:
     rkhunter         noarch        1.4.6-1         AIX_Toolbox_noarch        231 k
    Installing dependencies:
     findutils        ppc           4.6.0-2         AIX_Toolbox               1.3 M
    
    Transaction Summary
    ================================================================================
    Install  2 Packages
    
    Total size: 1.5 M
    Installed size: 4.9 M
    Is this ok [y/N]: y
    Downloading Packages:
    [SKIPPED] findutils-4.6.0-2.aix6.1.ppc.rpm: Already downloaded
    [SKIPPED] rkhunter-1.4.6-1.aix6.1.noarch.rpm: Already downloaded
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Preparing        :                                                        1/1
      Installing       : findutils-4.6.0-2.ppc                                  1/2
      Running scriptlet: findutils-4.6.0-2.ppc                                  1/2
      Installing       : rkhunter-1.4.6-1.noarch                                2/2
      Verifying        : findutils-4.6.0-2.ppc                                  1/2
      Verifying        : rkhunter-1.4.6-1.noarch                                2/2
    
    Installed:
      rkhunter-1.4.6-1.noarch                 findutils-4.6.0-2.ppc
    
    Complete!
    [pts/0] /opt/freeware/etc
    
    =>rkhunter --check
    The command 'awk' must be present on the system in order to run rkhunter.
    The command 'cat' must be present on the system in order to run rkhunter.
    The command 'chmod' must be present on the system in order to run rkhunter.
    The command 'chown' must be present on the system in order to run rkhunter.
    The command 'cp' must be present on the system in order to run rkhunter.
    The command 'cut' must be present on the system in order to run rkhunter.
    The command 'date' must be present on the system in order to run rkhunter.
    The command 'egrep' must be present on the system in order to run rkhunter.
    The command 'grep' must be present on the system in order to run rkhunter.
    The command 'head' must be present on the system in order to run rkhunter.
    The command 'ls' must be present on the system in order to run rkhunter.
    The command 'mv' must be present on the system in order to run rkhunter.
    The command 'sed' must be present on the system in order to run rkhunter.
    The command 'sort' must be present on the system in order to run rkhunter.
    The command 'tail' must be present on the system in order to run rkhunter.
    The command 'touch' must be present on the system in order to run rkhunter.
    The command 'tr' must be present on the system in order to run rkhunter.
    The command 'uname' must be present on the system in order to run rkhunter.
    The command 'uniq' must be present on the system in order to run rkhunter.
    The command 'wc' must be present on the system in order to run rkhunter.
    
    
    =>echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/bin:/sbin:/usr/local/bin:/opt/freeware/bin:/opt/freeware/sbin:/opt/freeware/etc:/usr/lib/mis:/usr/lib/mis/bin:/usr/lib/mis/misadm/prompts:/usr/local/SE
    [pts/0] /opt/freeware/etc
    
    =>oslevel -s
    7100-05-06-2028
    



    ------------------------------
    Demian Phillips
    ------------------------------



  • 2.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Tue January 18, 2022 12:11 PM
    Hi Demian,
    We are looking into the issue.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Tue January 18, 2022 12:31 PM

    I noticed that clean install AIX7.x has PATH /bin entry as //bin and this system did not. I updated /etc/environment PATH statement.

    Logged out and back in to refresh that and still get the same result of rkhunter complaining about all those binaries.



    ------------------------------
    Demian Phillips
    ------------------------------



  • 4.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Wed January 19, 2022 05:36 PM

    Disregard. Removed this after I found someone did something dumb in .profile.

    Still have the issue though.



    ------------------------------
    Demian Phillips
    ------------------------------



  • 5.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Fri January 21, 2022 05:14 AM
    We have understood the issue and working on a fix for that.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 6.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Fri January 28, 2022 02:31 AM
    The issue is fixed and a new release of rkhunter "1.4.6-2" is uploaded in Toolbox.
    https://public.dhe.ibm.com/aix/freeSoftware/aixtoolbox/RPMS/noarch/rkhunter/rkhunter-1.4.6-2.aix6.1.noarch.rpm

    ------------------------------
    Ayappan P
    ------------------------------



  • 7.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Fri January 28, 2022 06:24 AM
    Thank you.

    ------------------------------
    Demian Phillips
    ------------------------------



  • 8.  RE: dnf install of rkhunter can not find common binaries in /bin

    Posted Tue February 01, 2022 12:21 PM
    Reporting success of rkhunter 1.4.6-2 running.

    ------------------------------
    Demian Phillips
    ------------------------------