- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- need to disable telnet,SNMP etc srvices from ser...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 11:25 AM
тАО01-17-2010 11:25 AM
need to disable telnet,SNMP etc srvices from server
I have to disable the services mentioned below:
disable following services:
-SNMP
-telnet
-rexec
-rlogin
Can you pls guide me?
Is it only commenting these serices from /etc/rc.config.d/netconf ?
or any other files also need to modify?
thanks for your quick reply.
regards
sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 11:39 AM
тАО01-17-2010 11:39 AM
Re: need to disable telnet,SNMP etc srvices from server
Sorry a small mistake happened.
it is /etc/inetd.conf...
after puting a # infront of the concerned line we need to run inetd -c
is it enough for all services to disable?
rgds
sree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 01:14 PM
тАО01-17-2010 01:14 PM
Re: need to disable telnet,SNMP etc srvices from server
Should be, if there's an entry in
"/etc/inetd.conf" for each service which you
would like to disable.
It should be easy enough to test them. I'd
expect a "connection refused" error if the
service has been disabled.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 05:48 PM
тАО01-17-2010 05:48 PM
Re: need to disable telnet,SNMP etc srvices from server
netconf file refer to
netconf file allows you to identify the network interface name, IP address, and subnet mask of your LAN card, and add entries to the network routing table. As the netconf file has read-only permission, you must have superuser capability to make modifications to this file
nothing to do with "netconf" file, to disable the services like "SNMP,telnet,rexecrlogin" ..
services are listed under /etc/services
The file /etc/services associates official service names and aliases
with the port number and protocol the services use
inetd(1M) inetd(1M)
NOTE: Services currently supported by inetd will work in an IPv6
environment with a few changes to the configuration file
/etc/inetd.conf. (See inetd.conf(4)). When invoked, inetd reads
/etc/inetd.conf and configures itself to support whatever services are
included in that file (see inetd.conf(4)). The inetd daemon also
performs a security check if the file /var/adm/inetd.sec exists
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 05:53 PM
тАО01-17-2010 05:53 PM
Re: need to disable telnet,SNMP etc srvices from server
comment the services by # of the /etc/services
followed by inetd -c to re-read the services files.
Example :-
step 1:-
vi /etc/services
# telnet 23/tcp # Virtual Terminal Protocol
step 2 :-
inetd -c
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 10:49 PM
тАО01-17-2010 10:49 PM
Re: need to disable telnet,SNMP etc srvices from server
PLEASE, do not do this. Give "/etc/services"
a well deserved rest, and just leave it in
peace.
Removing/commenting a service in
"/etc/services" may not disable the service,
and it could cause other problems.
man services
[...]
The file /etc/services associates official
service names and aliases with the port
number and protocol the services use.
[...]
man inetd.conf
[...]
On invocation, the inetd daemon reads its
configuration information from the
/etc/inetd.conf configuration file, [...]
One file is for mapping service names to
numbers. The other is a configuration file
for inetd. If you wish to control the
services offered by inetd, then its
configuration file is the one to edit.
LEAVE "/etc/services" AS IT IS (unless you
_really_ need to _add_ something to it, or,
much less likely, change something in it).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-17-2010 10:53 PM
тАО01-17-2010 10:53 PM
Re: need to disable telnet,SNMP etc srvices from server
sincere apologies :( :( . sorry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 12:06 AM
тАО01-18-2010 12:06 AM
Re: need to disable telnet,SNMP etc srvices from server
for the snmp part to be desabled, please do the following things:
for the following files in /etc/rc.config.d/
SnmpHpunix
SnmpIpv6
SnmpMaster
SnmpMib2
SnmpNaa
SnmpTrpDst
edit all of them to put 0 in place of 1 so that these do not startup as the system starts.
/sbin/init.d/SnmpFddi4 stop
/sbin/init.d/SnmpHpunix stop
/sbin/init.d/SnmpIpv6 stop
/sbin/init.d/SnmpMaster stop
/sbin/init.d/SnmpMib2 stop
/sbin/init.d/SnmpNaa stop
/sbin/init.d/SnmpTrpDst stop
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 12:33 AM
тАО01-18-2010 12:33 AM
Re: need to disable telnet,SNMP etc srvices from server
Please disable the same on /etc/inetd.conf. Ensure you had a backup before you do any editing - BEST PRACTICE :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2010 10:12 AM
тАО01-18-2010 10:12 AM
Re: need to disable telnet,SNMP etc srvices from server
Thanks a lot for your valuble inputs.!!
Hi Ajesh,
How are you?
Thanks for your support!
Rgds Sree