Oracle® Solaris 11 Security Guidelines

Exit Print View

Updated: August 2014
 
 

How to Disable Unneeded Services

Use this procedure to disable services that are not required on this system.

Before You Begin

You must assume the root role. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  1. List the online network services.
    # svcs | grep network
    online         Sep_07   svc:/network/loopback:default
    online         Sep_07   svc:/network/http:apache22
    online         Sep_07   svc:/network/nfs/server:default
    ...
    online         Sep_07   svc:/network/ssh:default
  2. Disable the services that are not required by this system.

    For example, if the system is not an NFS server or a web server and their services are online, disable them.

    # svcadm disable svc:/network/nfs/server:default
    # svcadm disable svc:/network/http:apache22

See also

For more information, see Chapter 1, Introduction to the Service Management Facility, in Managing System Services in Oracle Solaris 11.2 and the svcs(1) man page.