[Bug 1548432] Re: rhkunter interprets mixed-case directive incorrectly in configuration file(s)

2016-04-03 Thread Ben Johnson
Thank you, François, I really appreciate it!

John Horne with the rkhunter project replied, and his suggestion does
indeed solve the problem for me, so we can go ahead and close this.

For some reason, I thought that rkhunter's ALLOW_SSH_ROOT_USER directive
wanted "PermitRootLogin", instead of PermitRootLogin's *value* in
/etc/ssh/sshd_config! This was operator error on my part.

Rather, rkhunter's ALLOW_SSH_ROOT_USER directive wants the same *value*
that is assigned to PermitRootLogin in /etc/ssh/sshd_config.

Changing rkhunter's config to ALLOW_SSH_ROOT_USER=yes fixes the issue.
My bad!

Nothing to see here, folks!

** Changed in: rkhunter (Ubuntu)
   Status: New => Invalid

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

Title:
  rhkunter interprets mixed-case directive incorrectly in configuration
  file(s)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1548432] Re: rhkunter interprets mixed-case directive incorrectly in configuration file(s)

2016-04-02 Thread François Marier
I filed the bug on the upstream bug tracker:
https://sourceforge.net/p/rkhunter/bugs/149/

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

Title:
  rhkunter interprets mixed-case directive incorrectly in configuration
  file(s)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1548432] Re: rhkunter interprets mixed-case directive incorrectly in configuration file(s)

2016-03-23 Thread Ben Johnson
I forgot to mention the most annoying aspect of the bug, which is that
there is no workaround.

If I change rkhunter's configuration file to use "permitrootlogin" (all
lower-case), somewhat unsurprisingly, the problem still occurs.

[09:34:26] Info: Found SSH /etc/ssh/sshd_config configuration file:
[09:34:26] Info: Rkhunter option ALLOW_SSH_ROOT_USER set to 'permitrootlogin'.
[09:34:26] Info: Rkhunter option ALLOW_SSH_PROT_V1 set to '0'.
[09:34:26]   Checking if SSH root access is allowed  [ Warning ]
[09:34:26] Warning: The SSH and rkhunter configuration options should be the 
same:
[09:34:26]  SSH configuration option 'PermitRootLogin': yes
[09:34:26]  Rkhunter configuration option 'ALLOW_SSH_ROOT_USER': 
permitrootlogin

But, surely, if we change the directive in the SSH configuration file,
and even restart the SSH daemon, the problem will be solved! Nope,
wrong.

[09:39:11] Info: Found SSH /etc/ssh/sshd_config configuration file:
[09:39:11] Info: Rkhunter option ALLOW_SSH_ROOT_USER set to 'permitrootlogin'.
[09:39:11] Info: Rkhunter option ALLOW_SSH_PROT_V1 set to '0'.
[09:39:11]   Checking if SSH root access is allowed  [ Warning ]
[09:39:11] Warning: The SSH and rkhunter configuration options should be the 
same:
[09:39:11]  SSH configuration option 'PermitRootLogin': yes # <--- This 
is wrong! The sshd_config file contains "permitrootlogin"!
[09:39:11]  Rkhunter configuration option 'ALLOW_SSH_ROOT_USER': 
permitrootlogin

So, we're stuck with a warning on every run, with no means by which to
suppress it effectively. This renders the tool useless.

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

Title:
  rhkunter interprets mixed-case directive incorrectly in configuration
  file(s)

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs