Find the answer to your Linux question:
Results 1 to 3 of 3
I want to turn off several services which I do not use (I think?) whenI connect to the internet. These are (in rc.0 order): httpd, mysql, samba, nfsd, rpc, sshd, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Mar 2008
    Posts
    287

    Stopping services


    I want to turn off several services which I do not use (I think?) whenI connect to the internet. These are (in rc.0 order): httpd, mysql, samba, nfsd, rpc, sshd, saslauthd, openldap, messagebus, and as in rc.0 end with /bin/sync and /bin/sleep 3.
    I am unsure of ssalauthd, openldap and messagebus in particular.
    The objective is to have as few services available as possible to thwart any hackers.
    The means for turning these off would be as in rc.0 and in that sequence. I will turn them back on in rc.M order.
    Any notes or suggestions will be very helpful.
    PS
    When I run sh /etc/rc.d/rc.nfsd stop i get the default case returned i.e. "usage ......" Whi won't this behave?
    Last edited by clickit; 07-06-2008 at 01:57 AM. Reason: nfsd stop

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Location
    Lafayette, IN
    Posts
    83
    If your distro has /sbin/chkconfig (I know Red Hat and Fedora do, maybe others?) you can just use

    /sbin/chkconfig service_name off

    Or else, you could remove the links from /etc/rc.*, if your system uses symlinks in each runlevel

  3. #3
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    chkconfig have --level option too,
    chkconfig --level 4 httpd off will turn off httpd in run level 4.

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •