Koozali.org: home of the SME Server

How to change hosts.allow

Jesper Knudsen

How to change hosts.allow
« 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

Julian Luton

Re: How to change hosts.allow
« Reply #1 on: August 12, 2002, 05:54:33 PM »

Jesper Knudsen

Re: How to change hosts.allow
« Reply #2 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?

Nathan Fowler

Re: How to change hosts.allow
« Reply #3 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

Jesper

Re: How to change hosts.allow
« Reply #4 on: August 13, 2002, 02:13:45 PM »
Great it worked. Thanks.

Jesper

Jesper

Re: How to change hosts.allow
« Reply #5 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