if I have more than one declaration of UID0_ACCOUNTS in rkhunter.conf and/or rkhuunter.conf.local, rkhunter reports both of them as warnings: example 1: rkhunter.conf: UID0_ACCOUNTS=toor rkhunter.conf.local: UID0_ACCOUNTS=dirvish hostname # rkhunter --skip-keypress --report-warnings-only --check Warning: Account 'toor' is root equivalent (UID = 0) Warning: Account 'dirvish' is root equivalent (UID = 0) example 2: rkhunter.conf.local: UID0_ACCOUNTS=toor rkhunter.conf.local: UID0_ACCOUNTS=dirvish hostname # rkhunter --skip-keypress --report-warnings-only --check Warning: Account 'toor' is root equivalent (UID = 0) Warning: Account 'dirvish' is root equivalent (UID = 0) example 3: rkhunter.conf: UID0_ACCOUNTS=toor rkhunter.conf.local: UID0_ACCOUNTS=toor dirvish hostname # rkhunter --skip-keypress --report-warnings-only --check Warning: Account 'toor' is root equivalent (UID = 0) If I declare UID0_ACCOUNTS=toor dirvish in either rkhunter.conf OR rkhunter.conf.local everything is fine. Greetings from Dortmund (Germany) Edgar
Maintainer CC'd
Thank you Edgar, I was able to reproduce this problem. I've submitted this to upstream with a patch proposal, could you try it? https://sourceforge.net/p/rkhunter/bugs/132/
Hi Lukasz, the Patch did the trick. The patched rkhunter now serves the UID0_ACCOUNTS options as expected... Many Thanks to you and John Horne Edgar