How to Disable the Samba Service

  1. Become an administrator.
  2. Verify that the Samba service is running.
    $ svcs | grep samba

    For example, the following output shows that the Samba service is running:

    $ svcs | grep samba
    legacy_run     Aug_03   lrc:/etc/rc3_d/S90samba
  3. Disable the Samba service.
    $ svcadm disable svc:/network/samba
    $ svcadm disable svc:/network/wins