Re: Getting rid of portmap

2001-03-16 Thread Nathan E Norman
On Fri, Mar 16, 2001 at 09:37:00AM -0700, Randolph S. Kahle wrote:
> Question --> what is the best approach to stop
> portmap from running on a Debian system?

IIRC, portmap is part of netbase in potato.  Renaming the
/etc/init.d/portmap script or removing all the start/stop links caused
an upgrade to run portmap again; I hated that.

However, if you leave at least one start/stop link present for a
package, update-rc.d will not add or delete links when run from a
package script.

So, it's only necessary to remove the start links leaving the stop
links in place.

# find /etc/rc?.d -name S\*portmap | xargs rm

HTH,

-- 
Nathan Norman - Staff Engineer | A good plan today is better
Micromuse Inc. | than a perfect plan tomorrow.
mailto:[EMAIL PROTECTED]   |   -- Patton


pgpdilq4iPbtU.pgp
Description: PGP signature


Re: Getting rid of portmap

2001-03-16 Thread Andre Berger
* Randolph S. Kahle <[EMAIL PROTECTED]>, 20010316 17:50 +0100:

> Question --> what is the best approach to stop
> portmap from running on a Debian system?

Stop portmap, then rename /etc/init.d/portmap to
/etc/init.d/portmap_hidden, and it won't come up again. 

(This was posted some time ago, not by me; works fine here.)

Andre Berger[EMAIL PROTECTED]



Re: Getting rid of portmap

2001-03-16 Thread Corwin Grey

dpkg -S portmap will tell you that portmap is included in the netbase package.

If you need other contents of netbase,

> Question --> what is the best approach to stop
> portmap from running on a Debian system?


If you are hesitant to remove the symlink, edit the portmap script and put
an exit as the second line.


Corwin J. Grey
Techline, Inc.
http://www.techline.com
Engineering and Application Development

"What does this tell me?  That if Microsoft were the last software
company left in the world, 13% of the US population would be scouring
garage sales & Goodwill for old TRS-80s, CPM machines & Apple ]['s before
they would buy Microsoft. That's not exactly a ringing endorsement."
-- Seen on Slashdot



Getting rid of portmap

2001-03-16 Thread Randolph S. Kahle

I am converting my firewall machine to a Debian
installation. I am in the process of removing unwanted
services so as to lock down the machine against
intrusions.

I am trying to remove portmap, but this program
does not seem to follow the pattern for other
programs. With other program I simply
"dpkg --purge" them. There is no listing of
portmap ("dpkg --list" does not show portmap)
so this approach does not work.

Next I looked at removing the symbolic
link from /etc/rcS.d to portmap so that it would
not be started. Upon reading the documentation
for the update-rc.d script, it seems that this
is the next best approach. However, to do this,
I have to use the '-f' or "force" flag. I am hesitating
to do this until I get some feedback from the
community.

Question --> what is the best approach to stop
portmap from running on a Debian system?

Thanks!

Randy