[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Stop sendmail service

Posted on 2006-03-22
4
Medium Priority
?
2,013 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?
0
Comment
Question by:operation1612
  • 2
  • 2
4 Comments
 
LVL 18

Accepted Solution

by:
liddler earned 200 total points
ID: 16256021
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
0
 

Author Comment

by:operation1612
ID: 16256073
i found this in my solaris8....which one need to be rename?

/etc/rc0.d/K36sendmail
/etc/rc1.d/K36sendmail
/etc/init.d/sendmail
0
 
LVL 18

Expert Comment

by:liddler
ID: 16256292
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?
0
 

Author Comment

by:operation1612
ID: 16259887
oh ya...i found it K88sendmail in rc2.d...sorry..ok thanks a lot..i got it
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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 navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 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