Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 383
  • Last Modified:

Stop the services

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
matchz
Asked:
matchz
1 Solution
 
tfewsterCommented:
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
 
palimaCommented:
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
 
wesly_chenCommented:
Hi,

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

Wesly
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now