Click to See Complete Forum and Search --> : killing daemons
sledge_hmr
02-23-2001, 05:40 PM
How do I kill daemons and prevent them from starting in the first place? I read the NHF on security, but Red Hat 7 uses a different setup xinetd instead of inetd[/]. In particular, I have read that the [I]sendmail daemon is a security hazard. If all I want is a basic workstation that can connect a LAN, what daemons can I live without. Can someone help me exorcize my OS?
Gaccm
02-23-2001, 06:06 PM
kill all deamons one by one until it doesn't do what you want it to do :) there should be a xinetd conf file (i have debian, and i have /etc/inetd.conf) just comment out the linges you dont like, and for anything currently running, ps -aux, kill -9
Danster
02-24-2001, 01:33 AM
try
# vi /etc/inetd.conf
that s/b where pop services R started. Also U could use:
# slocate xinetd
-- this file wuzn't on my RH system.
ASCI Blue
02-24-2001, 02:20 AM
hire a daemon hunter..or if you're daring enough get some wood stakes.... :p
bdg1983
02-24-2001, 02:28 AM
http://www.linuxnewbie.org/nhf/intel/osbooting/sysvinit.html
flintstone
02-24-2001, 08:59 AM
I use RedHat 7, so probably this is highly specific to us mad hatters :)
1. chkconfig: type chkconfig --list to get a list of all services currently running at that runlevel.
To remove a service type chkconfig --level <runlevel> <servicename> off
runlevel is the runlevel you want to modify, and servicename is the service you want to stop.
You can also specify multiple runlevels, like chkconfig --level 345 httpd off.
If you want to banish the service altogether from your linuxbox, use
chkconfig --del <servicename>
2. this is also a command line mode.
type ntsysv --level <runlevel> to access the services for that particular runlevel.
after that its a walk in the park
3, if you want to use X-windows, su to root, open a xterm and type tksysv.
this will open a gui similar to linuxconf..it should be easy after that.
bdg1983
02-24-2001, 10:52 AM
hire a daemon hunter..or if you're daring enough get some wood stakes
ASCI Blue... Let's stay on the subject. You wouldn't appreciate the same response for your questions.
Strike
02-24-2001, 04:03 PM
Originally posted by mdwatts:
ASCI Blue... Let's stay on the subject. You wouldn't appreciate the same response for your questions.
It's just a joke, lighten up (he even used the standard joke notation, ending with " :rolleyes:")
Tyr-7BE
02-24-2001, 06:50 PM
Are you sure you don't have inetd.conf? I used Mandrake 7.2 which is a spinoff of RedHat and has an identical directory structure/setup as RedHat, and the NHF on security worked like a dream for me :) Should be /etc/inetd.conf.
flintstone
02-24-2001, 11:02 PM
Actually, I had the same problem too, I went over my etc dir with a comb to find it and ended up using ntsysv tool that comes with RH.
While ntsysv is very simple and easy to use, it gives me practically no knowledge about whats happening inside the box.