Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Jesper Knudsen on August 12, 2002, 01:24:38 PM

Title: How to change hosts.allow
Post by: Jesper Knudsen on August 12, 2002, 01:24:38 PM
I have installed UCD-SNMP and need to alter the hosts-allow file in order to provide access.

snmpd: ALL

Then works fine but as soon as I use the server-manager the entry has been removed. I is also written in the top that I should use the change the /etc/e-smith/templates-custom directory. This directory is emty though.

Does anyone know how to keep this entry ?

Thanks,
Jesper
Title: Re: How to change hosts.allow
Post by: Julian Luton on August 12, 2002, 05:54:33 PM
http://www.e-smith.org/custom/
Title: Re: How to change hosts.allow
Post by: Jesper Knudsen on August 12, 2002, 10:25:46 PM
Thanks for the reply.

I have read through this last week but I have to admit I wouldn't know how and what to change to or add. I assume that I would have to look in the Example 2 but what are the new parameters ?

I guess I am to new in the game to do this. Are there no other ways of adding SMNP and allow the client applications (such as Cacti or MRTG) to access?
Title: Re: How to change hosts.allow
Post by: Nathan Fowler on August 12, 2002, 10:34:47 PM
Issue the following commands at console:

[From Console]
mkdir -p /etc/e-smith/templates-custom/etc/hosts.allow
echo "snmpd: ALL" > /etc/e-smith/templates-custom/etc/hosts.allow/snmpd
/sbin/e-smith/expand-template /etc/hosts.allow
[End Commands]

You should now have smtpd:ALL in your /etc/hosts.allow.  The template should not overwrite these changes since they were templated.


Hope this helped,
Nathan
Title: Re: How to change hosts.allow
Post by: Jesper on August 13, 2002, 02:13:45 PM
Great it worked. Thanks.

Jesper
Title: Re: How to change hosts.allow
Post by: Jesper on September 01, 2002, 04:58:42 PM
My MRTG and Cacti has now worked flawlessly for quite some time now. I then had to reboot and noticed that the SNMP deamon did autostart during boot.

I would like the command:
"service snmpd start"

to be issued upon boot.

How do I ensure that ?

(I know stupid question if you know Linux but I am not an expert)

I hope anyone can help here.

Thanks,
Jesper