Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2006, 00:06
Jcorrea920 Jcorrea920 is offline
Member
 
Join Date: Feb 2006
Posts: 82
Thanks: 4
Thanked 1 Time in 1 Post
Question 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.
Reply With Quote
Sponsored Links
  #2  
Old 12th May 2006, 10:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Why does it say /private/var/log/system.log? Did you configure that somewhere?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th May 2006, 21:11
Jcorrea920 Jcorrea920 is offline
Member
 
Join Date: Feb 2006
Posts: 82
Thanks: 4
Thanked 1 Time in 1 Post
Thumbs down 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?
Reply With Quote
  #4  
Old 12th May 2006, 22:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in denyhosts.cfg (strip out the comments)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th May 2006, 11:37
Jcorrea920 Jcorrea920 is offline
Member
 
Join Date: Feb 2006
Posts: 82
Thanks: 4
Thanked 1 Time in 1 Post
Thumbs up 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
Reply With Quote
  #6  
Old 28th August 2006, 10:47
wr19026 wr19026 is offline
Senior Member
 
Join Date: Jan 2006
Posts: 172
Thanks: 7
Thanked 1 Time in 1 Post
Default

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?
Reply With Quote
  #7  
Old 29th August 2006, 19:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 24th November 2006, 17:02
Berry Berry is offline
Member
 
Join Date: Nov 2006
Posts: 69
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to Berry
Default

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??
Reply With Quote
  #9  
Old 25th November 2006, 14:17
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's the output of
Code:
ls -la /var/log
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #10  
Old 27th November 2006, 11:32
Berry Berry is offline
Member
 
Join Date: Nov 2006
Posts: 69
Thanks: 10
Thanked 1 Time in 1 Post
Send a message via Skype™ to Berry
 
Default

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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Xen 3.0, Ubuntu 5.10, and Windows 2003 Server Jcorrea920 HOWTO-Related Questions 3 4th May 2006 11:26
Xen Ubuntu VM Install Question witless1 HOWTO-Related Questions 5 3rd May 2006 15:42
Ubuntu setup using SSH LuisC-SM HOWTO-Related Questions 9 16th April 2006 16:11
Is there a testing procedure for ISPConfig? deezone Installation/Configuration 14 22nd January 2006 19:41
Logging on to an ubuntu server DMJ HOWTO-Related Questions 3 8th January 2006 00:24


All times are GMT +2. The time now is 09:54.


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