[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


Stop the services

Posted on 2004-10-25
Medium Priority
Last Modified: 2013-12-27
When I did a port scanning to the solaris machine, i found the following ports are opened.

20/tcp    open  ftp-data
21/tcp    open  ftp
22/tcp    open  ssh
53/tcp    open  domain
80/tcp    open  http
110/tcp   open  pop-3
143/tcp   open  imap
443/tcp   open  https
1521/tcp  open  oracle
1863/tcp  open  unknown
5050/tcp  open  mmcc
5190/tcp  open  aol
8080/tcp  open  http-proxy
10000/tcp open  snet-sensor-mgmt

I would like how can i stop the pop-3, imap, and the services that using 1863, 5050, 5190, 10000?
Question by:matchz
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 21

Accepted Solution

tfewster earned 200 total points
ID: 12398557
pop-3 and imap will be defined in /etc/inetd/services (with references in /etc/inetd/inetd.conf);

Those other services may exist in the services file, or they might be a server program a user is running; You can trace the process with `lsof` (Get it from http://www.sunfreeware.com).

Or you could use a firewall to block those ports

If you amend inetd.conf or the services file, you then need to force inetd to re-read the config file with
`kill -SIGHUP <PID of inetd>

Expert Comment

ID: 12398743
for example to stop snmp
firsly you have to stop this services from its startup script or far by kill:
/etc/rc3.d/S76snmpdx stop
 then dissable the intended run level script: turn the first letter of the script name to small letter
mv /etc/rc3.d/S76snmpdx /etc/rc3.d/s76snmpdx
this example may help
LVL 38

Expert Comment

ID: 12405947

   Or simply comment out those service in /etc/inet/services.


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question