Solved

Stop the services

Posted on 2004-10-25
372 Views
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?
0
Question by:matchz
    3 Comments
     
    LVL 20

    Accepted Solution

    by:
    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>
    0
     

    Expert Comment

    by:palima
    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
    0
     
    LVL 38

    Expert Comment

    by:wesly_chen
    Hi,

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

    Wesly
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
    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…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    This tutorial goes over how to archive and restore FreeBSD jails that are managed by ezjail.

    913 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now