From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b236d33e4dd626e X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-12-09 09:01:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!snoopy.risq.qc.ca!newsflash.concordia.ca!not-for-mail From: Sylvain Robitaille Newsgroups: comp.unix.tru64 Subject: Re: Help disabling SNMP and dtspc Date: 9 Dec 2002 17:01:28 GMT Organization: Concordia University, Montreal, Canada Message-ID: References: <993d885.0212041353.eddc7fd@posting.google.com> NNTP-Posting-Host: alcor.concordia.ca User-Agent: slrn/0.9.7.4 (OSF1) Xref: archiver1.google.com comp.unix.tru64:9225 Jack Frillman wrote: > I am not familar with the "SNMP" and "dtspc" services on a > Tru64 4.0F system. I have had a request to disable them. That's actually a good idea. If you *were* familiar with them, you still might prefer to disable them, but at least at that point if you didn't you'd have a chance of having configured them. > My questions are: > > 1 - How can I tell if they are disabled? For snmp, you want to check for an snmp daemon running: ps ax |grep snmpd |grep -vw grep For dtspc, you would check if it's enabled in the inetd.conf file: grep -w dtspc /etc/inetd.conf > 2 - How can I tell if they are enabled? The same way you tell if they're disabled, except for snmpd, you also want to check for /sbin/init.d/snmpd. If that file exists, you'll probably have an snmpd daemon running again after your next reboot. > 2 - How can they be disabled. First, shutdown snmpd if it's already running: /sbin/init.d/snmpd stop Next, disable it from starting up again: mv /sbin/init.d/snmpd /sbin/init.d/HIDE.snmpd (Note that this way of disabling the startup still leaves it available to you if you one day decide you do want to use it, while ensuring the system won't start it at boot time.) For dtspc, you'll need to disable it in the inetd.conf file, and signal inetd: sed 's/^dtspc/# dtspc/' /etc/inetd.conf > /etc/inetd.conf.NEW mv /etc/inetd.conf /etc/inetd.conf.`date +%Y%m%d` mv /etc/inetd.conf.NEW /etc/inetd.conf kill -HUP `cat /var/run/inetd.pid` If you decide later that you do want to enable that, you'll just need to reverse the edit (remove "# " from the dtspc line). > 3 - What are the consequiences if they are disabled? In the case of snmp, your systems will not give away information you may not want them to give to people you may not want possessing that information, (trust relationships, network layout, stuff like that). I have no idea what dtspc is used for, either legitimately or otherwise, so I see no point in having it running. I do recall there being recent security advisories about it, though. It would certainly be best to disable it. You'll probably want to do the same for other daemons that may be running (or available via inetd) on your system, with little or no documentation, for which you can't be sure what sorts of access controls exist. My general view is that unless the OS specifically needs a particular daemon, if I didn't configure it specifically for this host, I don't want it running. I hope that helps... -- ---------------------------------------------------------------------- Sylvain Robitaille syl@alcor.concordia.ca Systems analyst Concordia University Instructional & Information Technology Montreal, Quebec, Canada ----------------------------------------------------------------------