Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Stopping All Solaris Services

Posted on 2006-11-04
7
Medium Priority
?
1,365 Views
Last Modified: 2013-12-21
Hello!

I scanned my Solaris Box and I got this results:

PORT      STATE SERVICE
21/tcp    open  ftp
22/tcp    open  ssh
23/tcp    open  telnet
25/tcp    open  smtp
79/tcp    open  finger
80/tcp    open  http
111/tcp   open  rpcbind
513/tcp   open  login
514/tcp   open  shell
587/tcp   open  submission
898/tcp   open  sun-manageconsole
4045/tcp  open  lockd
6000/tcp  open  X11
7100/tcp  open  font-service
8888/tcp  open  sun-answerbook
32771/tcp open  sometimes-rpc5
32772/tcp open  sometimes-rpc7
32773/tcp open  sometimes-rpc9
32774/tcp open  sometimes-rpc11
32775/tcp open  sometimes-rpc13
32776/tcp open  sometimes-rpc15
32777/tcp open  sometimes-rpc17
32778/tcp open  sometimes-rpc19
32779/tcp open  sometimes-rpc21
32780/tcp open  sometimes-rpc23
32786/tcp open  sometimes-rpc25
32787/tcp open  sometimes-rpc27


This services are running!

I want to stop all this services except 80..

Please advice...
Thanks from now!
0
Comment
Question by:CSecurity
[X]
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
  • 3
  • 2
  • 2
7 Comments
 
LVL 34

Expert Comment

by:PsiCop
ID: 17873552
Most can be stopped by editing /etc/inet/inetd.conf

You didn't bother to specify which VERSION of Solaris you have, so getting very specific about what to comment out is difficult.

After editing that file to comment out whatever you don't want. issue a SIGHUP to the inetd daemon and re-scan.
0
 
LVL 17

Author Comment

by:CSecurity
ID: 17873558
I user Solaris 10 and I stop services using svcadm and svcs commands.
0
 
LVL 34

Expert Comment

by:PsiCop
ID: 17874046
Hmmm....Sun changed a LOT of system administration tasks in Solaris 10. Editing /etc/inet/inetd.conf may not be the right way to do this in that version.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 48

Expert Comment

by:Tintin
ID: 17874447
Firstly, if you are concerned about securing your system, you should try jass.

http://www.sun.com/software/security/jass/

In Solaris 10, to disable services:

Run

svcs

to see all enabled services, then disable the ones you want.  Eg:

svcadm disable sendmail
svcadm disable rlogin
etc

0
 
LVL 17

Author Comment

by:CSecurity
ID: 17876837
I know... I want svcs and svcadm (as I noticed above)

But I want to know service names of application which listens on ports I specified above
0
 
LVL 48

Accepted Solution

by:
Tintin earned 1500 total points
ID: 17877336
21/tcp    open  ftp - svcadm disable ftp
22/tcp    open  ssh - svcadm disable ssh
23/tcp    open  telnet - svcadm disable telnet
25/tcp    open  smtp - svcadm disable smtp
79/tcp    open  finger - svcadm disable finger
111/tcp   open  rpcbind - for i in `svcs -H -o FMRI *rpc*`;do svcadm disable $i;done   # This will disable *all* rpc servcies
513/tcp   open  login - Do you *really* want to disable this?
514/tcp   open  shell - svcadm disable shell
587/tcp   open  submission - # gets disabled when you disable smtp (sendmail)
898/tcp   open  sun-manageconsole - not sure
4045/tcp  open  lockd - for i in `svcs -H -o FMRI *nfs*`; do svcadm disable $i;done # This will disable *all* NFS services
6000/tcp  open  X11 - not sure
7100/tcp  open  font-service - svcadm xfs
8888/tcp  open  sun-answerbook - not sure
0
 
LVL 17

Author Comment

by:CSecurity
ID: 17877338
Thanks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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.

636 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