Auto start denyhosts at startup

Keith ac7xc1nx at comcast.net
Wed Jul 8 00:20:18 UTC 2009


On Jul 7, 2009, at 2:13 PM, Keith Clark wrote:

> On Tue, 2009-07-07 at 23:09 +0200, Nils Kassube wrote:
>> Keith Clark wrote:
>>> How do I auto start the denyhosts daemon when I boot up.  I have to
>>> execute the program as root.  I installed it via synaptic.
>>>
>>> I've installed it and modified its denyhosts.conf file.  I start it
>>> up with:
>>>
>>> sudo /usr/sbin/denyhosts --daemon --verbose
>>> --config=/etc/denyhosts.conf
>>>
>>> All seems to work fine, but it does not startup upon reboot.
>>
>> Put the command
>>
>> /usr/sbin/denyhosts --daemon --verbose --config=/etc/denyhosts.conf
>>
>> in the file /etc/rc.local before this line:
>>
>> exit 0
>>
>> That will start the program as the last command of the boot sequence.
>>
>>
>> Nils
>>
>>
>
> Nils,
>
> Will that start it as root?
>
> Keith
>

Yes, Everything started with the start up scripts is run as root  
unless you
use

sudo USERLOGINNAME /path/to/command -blah blah








More information about the ubuntu-users mailing list