|
List Info
Thread: Re: installing denyhosts in 10.5
|
|
| Re: installing denyhosts in 10.5 |
  United States |
2008-05-08 22:25:45 |
|
I've tried rebooting a couple of times with no luck. g
On May 8, 2008, at 6:48 PM, Alexander Hansen wrote: $ denyhosts-py25.py --help Usage: /sw/bin/denyhosts-py25.py [-f logfile | --file=logfile] [ -c configfile | --config=configfile] [-i | --ignore] [-n | --noemail] [--purge] [--migrate] [--daemon] [--sync] [--version]
But there may be something else going on here. If I try starting the daemon manually, I get:
$ sudo denyhosts-py25.py -c /sw/etc/denyhosts-py25/denyhosts.cfg --daemon Can't read: /var/log/asl.log [Errno 2] No such file or directory: '/var/log/asl.log' Error deleting DenyHosts lock file: /sw/var/run/denyhosts-py25.pid [Errno 2] No such file or directory: '/sw/var/run/denyhosts-py25.pid'
And I get the same thing if I try to set the log file manually.
Maybe a reboot, thereby starting the daemon, would work. On May 8, 2008, at 8:21 PM, glenn millhauser wrote:
Thanks. When I execute /sw/bin/denyhosts-py25.py I get the error message:
Error reading file: denyhosts.cfg [Errno 2] No such file or directory: 'denyhosts.cfg'
However, when I check the /sw/etc/denyhosts-py25 directory, denyhosts.cfg is there.
Any ideas?
thanks, g
On May 8, 2008, at 5:12 PM, Alexander Hansen wrote: Quite correct: everything should be installed in your Fink tree by a Fink package (except for a few things that have to be handled at the system level).
The daemon is supposed to be set up to run automatically as part of the package's installation process.
If you run "dpkg -L denyhosts-py25" you'll find /sw/bin/denyhosts-py25.py , which should be executable.
On May 8, 2008, at 7:30 PM, glenn millhauser wrote: Thanks, Laine. However, my Fink installation seems to have set up things differently. I don't have a /usr/share/denyhosts directory. Instead, I have a /sw/etc/daemons directory containing the file denyhosts-py25.xml. All files have been installed under /sw. For example, the denyhosts.cfg file is in /sw/etc/denyhosts-py25 directory. Does this make sense to you and, if so, do you know how to launch the daemon? thanks
On May 8, 2008, at 11:43 AM, Laine Lee wrote:
On 5/6/08 7:04 PM, "glenn millhauser" < glennm chemistry.ucsc.edu">glennm chemistry.ucsc.edu> wrote:
1) I found instructions that only involve editing the sshd_config
file. Is this sufficient?
I think the editing of the sshd_config file is what is needed to make it work on a standard (non-server) Tiger system. Most of what you need for setup is found in the denyhosts FAQ. Once you've configured it, you should be able to get some information by running the start and stop commands. I think you might want to use Lingon to create a launchd item rather than cron. It's fairly straighforward to set up a startup item with Lingon.
The start and stop commands are (depending on your configuration - I didn't install this particular solution using Fink):
/usr/share/denyhosts/daemon-control start
/usr/share/denyhosts/daemon-control stop
It should be possible to get further help by using the resources available at denyhosts.sourceforge.net.
http://article.gmane.org/gmane.os.apple.fink.beginners/19292/match=denyhosts
2) Elsewhere, I've seen that one has to also edit the crontab file.
Can I skip this and just do step 1?
I'd suggest that you make configuration customizations first using Robert's message and the denyhosts FAQ, then see whether denyhosts is working using the start and stop commands, then use launchd (Lingon handles that well), or cron, or the startup method of your choice.
3) Part of the instructions of step one involves the sshd_config
settings
PasswordAuthentication no
UsePAM yes
UseDNS no
If the UsePAM somehow doesn't work right, will setting
"PasswordAuthentication no" leave my computer open to random logins?
I don't think so.
Laine Lee
Glenn L. Millhauser Department of Chemistry & Biochemistry UC Santa Cruz Santa Cruz, CA 95064 831 459 2176 voice 831 566 3337 cell 831 459 2935 fax
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________ Fink-beginners mailing list Fink-beginners lists.sourceforge.net">Fink-beginners lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.beginners
Glenn L. Millhauser Department of Chemistry & Biochemistry UC Santa Cruz Santa Cruz, CA 95064 831 459 2176 voice 831 566 3337 cell 831 459 2935 fax
Glenn Millhauser Department of Chemistry & Biochemistry UC Santa Cruz Santa Cruz, CA 95064
831 459 2176 voice 831 459 2935 fax 831 566 3337 cell
glennm  chemistry. ucsc.edu">glennm chemistry.ucsc.edu
|
| Re: installing denyhosts in 10.5 |
  United States |
2008-05-08 23:54:29 |
On 5/8/08 10:25 PM, "Glenn Millhauser"
<glennm chemistry.ucsc.edu> wrote:
> I've tried rebooting a couple of times with no luck.
> g
>
>
> On May 8, 2008, at 6:48 PM, Alexander Hansen wrote:
>
>> $ denyhosts-py25.py --help
>> Usage:
>> /sw/bin/denyhosts-py25.py [-f logfile |
--file=logfile] [ -c configfile |
>> --config=configfile] [-i | --ignore] [-n |
--noemail] [--purge] [--migrate]
>> [--daemon] [--sync] [--version]
>>
>> But there may be something else going on here. If
I try starting the daemon
>> manually, I get:
>>
>> $ sudo denyhosts-py25.py -c
/sw/etc/denyhosts-py25/denyhosts.cfg --daemon
>> Can't read: /var/log/asl.log
>> [Errno 2] No such file or directory:
'/var/log/asl.log'
>> Error deleting DenyHosts lock file:
/sw/var/run/denyhosts-py25.pid
>> [Errno 2] No such file or directory:
'/sw/var/run/denyhosts-py25.pid'
>>
>> And I get the same thing if I try to set the log
file manually.
>>
>> Maybe a reboot, thereby starting the daemon, would
work.
>>
I think you can tell denyhosts to monitor secure.log instead
of asl.log.
That's what I did anyway. But again, I installed using the
method described
at the denyhosts site, not with Fink. Also, I installed for
Tiger server.
Anyway, there is a mailing list for denyhosts at
<http://denyhos
ts.sourceforge.net/>.
Laine Lee
------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
Don't miss this year's exciting event. There's still time to
save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Fink-beginners mailing list
Fink-beginners lists.sourceforge.net
h
ttp://news.gmane.org/gmane.os.apple.fink.beginners
|
|
| Re: installing denyhosts in 10.5 |
  United States |
2008-05-09 06:51:20 |
Drop a note to the package's maintainer, then. They may
have more
insight here.
On May 8, 2008, at 11:25 PM, Glenn Millhauser wrote:
> I've tried rebooting a couple of times with no luck.
> g
>
>
<snip>
------------------------------------------------------------
-------------
This SF.net email is sponsored by the 2008 JavaOne(SM)
Conference
Don't miss this year's exciting event. There's still time to
save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;1987
57673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Fink-beginners mailing list
Fink-beginners lists.sourceforge.net
h
ttp://news.gmane.org/gmane.os.apple.fink.beginners
|
|
[1-3]
|
|