Notes on Turning Off Services in Soalris 10

If you ever want to either conserve resources or secure a machine by reducing the number of services you don’t need, here are simple commands that can help you to do just that:

1. List services:
/usr/bin/svcs -a

For services with the status of ” legacy_run”, you will need to run scripts in /etc/init.d and /etc/rc*.d directories. For example:
/etc/init.d/apache stop

2. Disable services you don’t need with example commands below:

/usr/sbin/svcadm disable svc:/network/finger:default

/usr/sbin/svcadm disable svc:/network/login:rlogin

/usr/sbin/svcadm disable svc:/network/shell:default

/usr/sbin/svcadm disable svc:/network/smtp:sendmail

/usr/sbin/svcadm disable svc:/network/rpc/rstat:default

/usr/sbin/svcadm disable svc:/network/rpc/rusers:default

/usr/sbin/svcadm disable svc:/network/ftp:default

/usr/sbin/svcadm disable svc:/network/nfs/rquota:default

/usr/sbin/svcadm disable svc:/network/nfs/client:default

/usr/sbin/svcadm disable svc:/network/nfs/nlockmgr:default

/usr/sbin/svcadm disable svc:/network/nfs/mapid:default

/usr/sbin/svcadm disable svc:/network/nfs/status:default

/usr/sbin/svcadm disable svc:/network/nfs/cbd:default

Related info and more here.

Advertisements

2 thoughts on “Notes on Turning Off Services in Soalris 10

  1. If you want to temporarily disable a service, add a -t option to the disable sub-command. Base on this information, I expect that the disable sub-command persist across reboots. See man page for more information.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s