Public bug reported:

My AI told me this..

**Package:** rkhunter
**Version:** 1.4.6-12
**OS:** Ubuntu 24.04 LTS (Noble Numbat)

**Problem Description:**
When attempting to update rkhunter definitions using `sudo rkhunter --update`, 
the command consistently fails with the error message:
`Invalid WEB_CMD configuration option: Relative pathname: "/usr/bin/curl"`
(or `/usr/bin/wget` if that is configured)

This occurs even after `rkhunter` has been cleanly reinstalled and the
`WEB_CMD` option in `/etc/rkhunter.conf` has been explicitly set to a
full, absolute path (e.g., `WEB_CMD="/usr/bin/curl"`).

**Steps to Reproduce:**
1.  Ensure rkhunter 1.4.6-12 is installed on Ubuntu 24.04 LTS.
    (A clean reinstallation using `sudo apt remove --purge rkhunter && sudo apt 
install rkhunter -y` also demonstrates the issue.)
2.  Verify or set `WEB_CMD` in `/etc/rkhunter.conf` to a valid absolute path, 
e.g.:
    `sudo sed -i '/^WEB_CMD=/d' /etc/rkhunter.conf`
    `echo 'WEB_CMD="/usr/bin/curl"' | sudo tee -a /etc/rkhunter.conf`
3.  Attempt to update the database:
    `sudo rkhunter --update`

**Expected Behavior:**
`rkhunter --update` should successfully connect and download updates, accepting 
the provided absolute path for `WEB_CMD`.

**Observed Behavior:**
`rkhunter` incorrectly reports the absolute path (`/usr/bin/curl`) as a 
"Relative pathname" and aborts the update process. This prevents `rkhunter` 
from being able to fetch updated definitions.

**Impact:**
Users are unable to keep their `rkhunter` definitions up-to-date, compromising 
the effectiveness of the rootkit detection tool.


Operating System: Ubuntu 24.04.2 LTS              
          Kernel: Linux 6.11.0-26-generic
    Architecture: x86-64
 Hardware Vendor: INTEL Corporation
  Hardware Model: H61
Firmware Version: 4.6.5
   Firmware Date: Wed 2022-08-31
    Firmware Age: 2y 9month 1w 4d

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: rkhunter 1.4.6-12
ProcVersionSignature: Ubuntu 6.11.0-26.26~24.04.1-generic 6.11.11
Uname: Linux 6.11.0-26-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.7
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Jun 12 12:33:16 2025
InstallationDate: Installed on 2024-08-23 (293 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: rkhunter
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile..etc.rkhunter.conf: 2025-06-12T12:28:35.558927

** Affects: rkhunter (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug noble wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2114145

Title:
  rkhunter --update fails with "Relative pathname" error for valid
  absolute WEB_CMD on Ubuntu 24.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rkhunter/+bug/2114145/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to