{"action":"created","issue":{"url":"https://api.github.com/repos/CISOfy/lynis/issues/88","labels_url":"https://api.github.com/repos/CISOfy/lynis/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/CISOfy/lynis/issues/88/comments","events_url":"https://api.github.com/repos/CISOfy/lynis/issues/88/events","html_url":"https://github.com/CISOfy/lynis/issues/88","id":118581380,"number":88,"title":"Leaking error messages & warnings","user":{"login":"FlorianHeigl","id":2828955,"avatar_url":"https://avatars.githubusercontent.com/u/2828955?v=3","gravatar_id":"","url":"https://api.github.com/users/FlorianHeigl","html_url":"https://github.com/FlorianHeigl","followers_url":"https://api.github.com/users/FlorianHeigl/followers","following_url":"https://api.github.com/users/FlorianHeigl/following{/other_user}","gists_url":"https://api.github.com/users/FlorianHeigl/gists{/gist_id}","starred_url":"https://api.github.com/users/FlorianHeigl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FlorianHeigl/subscriptions","organizations_url":"https://api.github.com/users/FlorianHeigl/orgs","repos_url":"https://api.github.com/users/FlorianHeigl/repos","events_url":"https://api.github.com/users/FlorianHeigl/events{/privacy}","received_events_url":"https://api.github.com/users/FlorianHeigl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CISOfy/lynis/labels/question","name":"question","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"mboelen","id":6152277,"avatar_url":"https://avatars.githubusercontent.com/u/6152277?v=3","gravatar_id":"","url":"https://api.github.com/users/mboelen","html_url":"https://github.com/mboelen","followers_url":"https://api.github.com/users/mboelen/followers","following_url":"https://api.github.com/users/mboelen/following{/other_user}","gists_url":"https://api.github.com/users/mboelen/gists{/gist_id}","starred_url":"https://api.github.com/users/mboelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboelen/subscriptions","organizations_url":"https://api.github.com/users/mboelen/orgs","repos_url":"https://api.github.com/users/mboelen/repos","events_url":"https://api.github.com/users/mboelen/events{/privacy}","received_events_url":"https://api.github.com/users/mboelen/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-11-24T10:53:22Z","updated_at":"2015-12-08T17:09:07Z","closed_at":null,"body":"In quiet mode there's a few spurious errors that should not happen.\r\nThe warning is by lynis itself, the other message from dnf on fedora.\r\nThe dnf one cannot even be suppressed with 2>&1 > /dev/null\r\n\r\n```\r\n[demo@fc11 lynis]$ sudo ./lynis -q\r\n    - Checking for password protection                        [ WARNING ]\r\n  - Checking Linux single user mode authentication            [ WARNING ]\r\n\r\nYum-utils package has been deprecated, use dnf instead.\r\nSee 'man yum2dnf' for more information.\r\n\r\n\r\n\r\nYum-utils package has been deprecated, use dnf instead.\r\nSee 'man yum2dnf' for more information.\r\n\r\n\r\nYum command has been deprecated, redirecting to '/usr/bin/dnf list-sec security'.\r\nSee 'man dnf' and 'man yum2dnf' for more information.\r\nTo transfer transaction metadata from yum to DNF, run:\r\n'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'\r\n\r\nNo such command: list-sec. Please use /usr/bin/dnf --help\r\n```\r\n\r\nI'm aware this also shows a bug in fedora. But I'm trying to build a monitoring & compliance check based on lynis and for that i need to be able to really rely on suppressing output.\r\n(I'm writing to a file and then report the % of hardening_index and lynis_tests_done."},"comment":{"url":"https://api.github.com/repos/CISOfy/lynis/issues/comments/162947626","html_url":"https://github.com/CISOfy/lynis/issues/88#issuecomment-162947626","issue_url":"https://api.github.com/repos/CISOfy/lynis/issues/88","id":162947626,"user":{"login":"mboelen","id":6152277,"avatar_url":"https://avatars.githubusercontent.com/u/6152277?v=3","gravatar_id":"","url":"https://api.github.com/users/mboelen","html_url":"https://github.com/mboelen","followers_url":"https://api.github.com/users/mboelen/followers","following_url":"https://api.github.com/users/mboelen/following{/other_user}","gists_url":"https://api.github.com/users/mboelen/gists{/gist_id}","starred_url":"https://api.github.com/users/mboelen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mboelen/subscriptions","organizations_url":"https://api.github.com/users/mboelen/orgs","repos_url":"https://api.github.com/users/mboelen/repos","events_url":"https://api.github.com/users/mboelen/events{/privacy}","received_events_url":"https://api.github.com/users/mboelen/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T17:09:07Z","updated_at":"2015-12-08T17:09:07Z","body":"We had a talk about it. Right now Quiet means: it is pretty quiet and only shows you the warnings, as stated in the man page.\r\n\r\nIf you feel you don't want to see anything at all, then you can upgrade to \"really quiet\" by redirecting all stderr/stdout to the /dev/null. For your purposes that seems to be a fitting solution as well.\r\n\r\nThanks for asking the question. I will close this issue as a wontfix, as no changes will be applied."}}