Bug 1014473 - denyhosts fails to start, for lack of /var/log/secure
Summary: denyhosts fails to start, for lack of /var/log/secure
Keywords:
Status: CLOSED DUPLICATE of bug 988163
Alias: None
Product: Fedora
Classification: Fedora
Component: denyhosts
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jason Tibbitts
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-02 07:38 UTC by David Jansen
Modified: 2014-11-12 01:09 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-11 10:13:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description David Jansen 2013-10-02 07:38:55 UTC
Description of problem:
denyhosts in Fedora 20 alpha fails to start, because there is no /var/log/secure . no doubt due to the fact, that logging is handled through the systemd journal in stead of rsyslog

Version-Release number of selected component (if applicable):
denyhosts-2.6-29.fc20.noarch

How reproducible:

Steps to Reproduce:
1. install denyhosts
2. enable and start the denyhosts.service
3.

Actual results:

# systemctl status denyhosts.service
denyhosts.service - SSH log watcher
   Loaded: loaded (/usr/lib/systemd/system/denyhosts.service; enabled)
   Active: failed (Result: exit-code) since Wed 2013-10-02 09:22:11 CEST; 1min 11s ago
  Process: 22955 ExecStart=/usr/bin/denyhosts.py --daemon --config=/etc/denyhosts.conf (code=exited, status=1/FAILURE)
  Process: 22952 ExecStartPre=/bin/rm -f /run/lock/subsys/denyhosts (code=exited, status=0/SUCCESS)

Oct 02 09:22:10 eendracht.strw.leidenuniv.nl systemd[1]: Starting SSH log watcher...
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl denyhosts.py[22955]: Can't read: /var/log/secure
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl denyhosts.py[22955]: [Errno 2] No such file or directory: '/var/log/secure'
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl denyhosts.py[22955]: Error deleting DenyHosts lock file: /var/lock/subsys/denyhosts
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl denyhosts.py[22955]: [Errno 2] No such file or directory: '/var/lock/subsys/denyhosts'
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl systemd[1]: denyhosts.service: control process exited, code=exited status=1
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl systemd[1]: Failed to start SSH log watcher.
Oct 02 09:22:11 eendracht.strw.leidenuniv.nl systemd[1]: Unit denyhosts.service entered failed state.


Expected results:
a running denyhosts daemon

Additional info:

Comment 1 Kevin Raymond 2013-12-11 10:08:24 UTC
Issue still there

Comment 2 Kevin Raymond 2013-12-11 10:13:24 UTC

*** This bug has been marked as a duplicate of bug 988163 ***

Comment 3 Karthic 2014-11-08 18:07:15 UTC
My server was attacked brutally and I was searching for a solution. I could not see a good solution except the whole thing sucks. I worked on my solution and would like to share with any one having the same issue and needs a solution.

I added a tactical command to /var/spool/cron/root to run every five minutes. It works now. Here is the command:

journalctl -u sshd --since=today | grep -e Failed >/var/log/secure

Comment 4 Jason Tibbitts 2014-11-12 01:09:25 UTC
It is, like, a whole lot easier to install a syslog daemon.


Note You need to log in before you can comment on or make changes to this bug.