Stop sendmail service

Posted on 2006-03-22
Last Modified: 2013-12-27
In Linux either I type setup in command will prompt dos based gui and i can disable the sendmail service from auto run on boot...but how to disable some service in solaris8? such as ssh, ftp and sendmail?
Question by:operation1612
    LVL 18

    Accepted Solution

    in /etc/rc2.d you will see the startup script for sendmail, simply rename it
    mv /etc/rc2.d/S88sendmail /etc/rc2.d/not88sendmail
    That will prevent it from starting on the next boot
    simply running
    /etc/rc2.d/S88sendmail stop
    will stop it
    ftp / telnet and sometimes ssh are a bit different.  They are spawned from inetd.
    So you need to comment them out of /etc/inetd.conf and then restart inetd
    Services should either be started via inetd, or from startup scripts in /etc/rc2.d and /etc/rc3.d

    Author Comment

    i found this in my solaris8....which one need to be rename?

    LVL 18

    Expert Comment

    there should be one in rc2.d
    the K scripts stop sendmail as the system is coming down.
    the init.d script is the actual start / stop script and /etc/rc2.d/S88sendmail is often linked to that.  What is in rc2.d?

    Author Comment

    oh ya...i found it K88sendmail in rc2.d...sorry..ok thanks a lot..i got it

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Join & Write a Comment

    Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. Please see for the updated article. It is avail…
    A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    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…

    746 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now