We help IT Professionals succeed at work.

Stop sendmail service

operation1612
on
Medium Priority
2,029 Views
Last Modified: 2013-12-27
In Linux either I type setup in command line...it 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?
Comment
Watch Question

Commented:
in /etc/rc2.d you will see the startup script for sendmail, simply rename it
i.e.
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
t

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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

/etc/rc0.d/K36sendmail
/etc/rc1.d/K36sendmail
/etc/init.d/sendmail

Commented:
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

Commented:
oh ya...i found it K88sendmail in rc2.d...sorry..ok thanks a lot..i got it
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.