I installed version 1.4.2 on Fedora 20 and got a problem when running it.

       /usr/bin/rkhunter: ligne 13967 : [: -ne : opérateur unaire attendu

       The problem is related on locale specification for the "ipcs" command.

       In French locale we get:

      /bin/ipcs -u

      ------ États des messages --------
      files allouées = 0
      en-têtes utilisées = 0
      espace utilisé = 0 octets

      ------ État de la mémoire partagée --------
      segments alloués = 8
      pages alloués = 8145
      pages résidentes = 8145
      pages d'échange = 0
      performance de l'espace d'échange = 0 tentatives         0 succès

      ------ États des sémaphores --------
      tableaux utilisés = 0
      sémaphores alloués = 0

      In C locale we get:

      LC_ALL=C /bin/ipcs -u

      ------ Messages Status --------
      allocated queues = 0
      used headers = 0
      used space = 0 bytes

      ------ Shared Memory Status --------
      segments allocated 8
      pages allocated 8145
      pages resident  8145
      pages swapped   0
      Swap performance: 0 attempts     0 successes

      ------ Semaphore Status --------
      used arrays = 0
      allocated semaphores = 0

      So:

      ${IPCS_CMD} -u 2>/dev/null | awk -F' ' '/segments allocated/ {print $3}'` 
-ne 0 ]

      does not work

      "${IPCS_CMD}" should be "LC_ALL=C ${IPCS_CMD}"

      Regards

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users

Reply via email to