HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   Denyhosts on Ubuntu? (http://www.howtoforge.com/forums/showthread.php?t=4246)

Jcorrea920 12th May 2006 00:06

Denyhosts on Ubuntu?
 
Having trouble starting Denyhosts on Ubuntu 5.10 install went fine.

Code:

/usr/share/denyhosts# /etc/init.d/denyhosts start
starting DenyHosts:    /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
Can't read: /private/var/log/system.log
[Errno 2] No such file or directory: '/private/var/log/system.log'
Error deleting DenyHosts lock file: /var/run/denyhosts.pid
[Errno 2] No such file or directory: '/var/run/denyhosts.pid'

Any ideas. I've tried setting it to the Red Hat/Fedora settings but those don't work either.

falko 12th May 2006 10:56

Why does it say /private/var/log/system.log? Did you configure that somewhere?

Jcorrea920 12th May 2006 21:11

It comes standard with Denyhosts 2.4b
 
Quote:

Why does it say /private/var/log/system.log? Did you configure that somewhere?
I tried to get fancy and install the most current version of Denyhosts 2.4b.

The Log file in denyhosts.cfg:

Code:

SECURE_LOG = /var/log/auth.log
Could it be a permission fiasco or what?

falko 12th May 2006 22:00

What's in denyhosts.cfg (strip out the comments)?

Jcorrea920 13th May 2006 11:37

All Good!
 
Falko,

Apparently my denyhosts.cfg had:

Code:

#
# Mac OS X (v10.3 or earlier):
SECURE_LOG=/private/var/log/system.log
#
########################################################################

Should have been:

Code:

#
# Mac OS X (v10.3 or earlier):
# SECURE_LOG=/private/var/log/system.log
#
########################################################################

Running Ubuntu not Max OS X so there you are, started up like a charm.

Jorge

wr19026 28th August 2006 10:47

Cool, I had the same problem when installing 2.5 instead of 2.0 as used in the HowTo (perhaps a quick pdate of the HowTo is in order?)

Anyway, here's a quick question: how do I upgrade my existing version; simple reinstall using the HowTo instructions and tweak them for 2.5?

falko 29th August 2006 19:18

Quote:

Originally Posted by wr19026
Anyway, here's a quick question: how do I upgrade my existing version; simple reinstall using the HowTo instructions and tweak them for 2.5?

Yes, that should work. :)

Berry 24th November 2006 17:02

Quote:

Originally Posted by wr19026
Cool, I had the same problem when installing 2.5 instead of 2.0 as used in the HowTo (perhaps a quick pdate of the HowTo is in order?)

I also installed 2.5, but my error is
Code:

starting DenyHosts:    /usr/bin/env python /usr/bin/denyhosts.py --daemon --config=/usr/share/denyhosts/denyhosts.cfg
Can't read: /var/log/auth.log
[Errno 2] No such file or directory: '/var/log/auth.log'
Error deleting DenyHosts lock file: /var/run/denyhosts.pid
[Errno 2] No such file or directory: '/var/run/denyhosts.pid'

appearently there is no /var/log/auth.log on my Sarge. Any clues?? :confused:

falko 25th November 2006 14:17

What's the output of
Code:

ls -la /var/log
?

Berry 27th November 2006 11:32

Quote:

Originally Posted by falko
What's the output of
Code:

ls -la /var/log
?

Code:

drwxr-xr-x  2 root        root    1024 Nov 26 02:42 apache2
-rw-r--r--  1 root        root  18670 Nov 24 09:38 aptitude
-rw-r--r--  1 root        root    456 Nov 14 02:42 aptitude.1.gz
-rw-r--r--  1 root        root      0 Oct 23 17:18 boot.log
-rw-rw-r--  1 root        utmp      0 Nov 14 02:42 btmp
-rw-rw-r--  1 root        utmp      0 Oct 19 10:20 btmp.1
-rw-r--r--  1 root        root  346528 Nov 27 11:30 cron
-rw-r--r--  1 root        root  12978 Nov 24 17:01 denyhosts
-rw-r--r--  1 root        root      68 Nov 24 15:56 dmesg
drwxr-s---  2 Debian-exim adm    1024 Nov 22 13:46 exim4
-rw-r--r--  1 root        root    600 Nov 13 16:59 fontconfig.log
drwxr-xr-x  2 root        root    1024 Nov 27 01:32 httpd
-rw-r--r--  1 root        root  29029 Nov 24 13:07 ispconfig_install.log
drwxr-xr-x  2 root        root    1024 Oct 19 10:20 ksymoops
-rw-rw-r--  1 root        utmp 3504584 Nov 27 11:19 lastlog
-rw-r--r--  1 root        root      0 Nov 26 03:57 lp-acct
-rw-r--r--  1 root        root      0 Nov 21 15:14 lp-acct.0
-rw-r--r--  1 root        root      0 Nov 26 03:57 lp-errs
-rw-r--r--  1 root        root      0 Nov 21 15:14 lp-errs.0
-rw-r--r--  1 root        root  256507 Nov 27 02:42 maillog
-rw-r--r--  1 root        root      0 Nov 26 02:42 messages
-rw-r--r--  1 root        root  30538 Nov 26 02:42 messages.1.gz
-rw-r--r--  1 root        root  15217 Nov 19 02:43 messages.2.gz
-rw-r--r--  1 root        root  10077 Nov 14 02:42 messages.3.gz
drwxr-s---  2 mysql      adm    1024 Nov 27 02:42 mysql
-rw-r-----  1 root        adm        0 Nov 27 02:42 mysql.err
-rw-r-----  1 root        adm      20 Nov 27 02:42 mysql.err.1.gz
-rw-r-----  1 root        adm      20 Nov 26 02:42 mysql.err.2.gz
-rw-r-----  1 root        adm      20 Nov 25 02:42 mysql.err.3.gz
-rw-r-----  1 root        adm      20 Nov 24 02:42 mysql.err.4.gz
-rw-r-----  1 root        adm      20 Nov 23 02:42 mysql.err.5.gz
-rw-r-----  1 root        adm      20 Nov 22 02:42 mysql.err.6.gz
-rw-r-----  1 root        adm      20 Nov 21 02:42 mysql.err.7.gz
-rw-r-----  1 mysql      adm        0 Nov 27 02:42 mysql.log
-rw-r-----  1 mysql      adm      20 Nov 27 02:42 mysql.log.1.gz
-rw-r-----  1 mysql      adm      20 Nov 26 02:42 mysql.log.2.gz
-rw-r-----  1 mysql      adm      20 Nov 25 02:42 mysql.log.3.gz
-rw-r-----  1 mysql      adm      20 Nov 24 02:42 mysql.log.4.gz
-rw-r-----  1 mysql      adm      20 Nov 23 02:42 mysql.log.5.gz
-rw-r-----  1 mysql      adm      20 Nov 22 02:42 mysql.log.6.gz
-rw-r-----  1 mysql      adm      20 Nov 21 02:42 mysql.log.7.gz
drwxr-xr-x  2 root        root    1024 Oct  1  2004 news
-rw-r--r--  1 root        root  10151 Nov 24 16:38 secure
-rw-r--r--  1 root        root      0 Oct 23 17:18 spooler
-rw-rw-r--  1 root        utmp  138624 Nov 27 11:19 wtmp
-rw-rw-r--  1 root        utmp  34560 Nov 14 00:49 wtmp.1
-rw-r--r--  1 root        root      0 Nov 26 23:59 xferlog



All times are GMT +2. The time now is 19:46.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.