- How to disable ports?
- Posted by SQ on November 22nd, 2005
I need to disable ports 80, 443 and 137,138,139 on HPUX 11v2.
Can I just comment them out in /etc/services file and restart inetd or
does this change entail something more extensive?
- Posted by Lars Kellogg-Stedman on November 22nd, 2005
Commenting them out of /etc/services doesn't really get you anything.
Commenting the services out of /etc/inetd.conf (and restarting inetd)
will work fine *if* the software bound to these ports is actually
running out of inetd. If it's running as a daemon, you'll have to stop
the appropriate process.
-- Lars
--
Lars Kellogg-Stedman <8273grkci8q8kgt@jetable.net>
This email address will expire on 2005-11-23.
- Posted by Michael Heiming on November 23rd, 2005
In comp.unix.admin SQ <onestatusquo@yahoo.com>:
No, commenting them in "/etc/services" won't do much. In addition
those ports are usually not used by apps running from inetd.
In any case, if you aren't running anything on those ports
there's not much sense in disabling them.
You might want to look for some basic admin guide for your OS
that should speed you up.
Good luck
BTW
Please read this before posting anything else:
http://cfaj.freeshell.org/google
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 154: You can tune a file system, but you can't
tune a fish (from most tunefs man pages)