portmap on debian, can I safely remove it?

2

1

I'm running 3 http server with nothing fancy on them. it's just apache with a shared directory via SSHFS, looking at the usage of RAM I can see that portmap is using quite a bit of RAM/CPU and I have no idea what it's doing.

init-+-acpid
     |-apache2---431*[apache2---{apache2}]
     |-atd
     |-cron---cron---sh---php---{php}
     |-dbus-daemon
     |-6*[getty]
     |-memcached---5*[{memcached}]
     |-newrelic-daemon---newrelic-daemon---11*[{newrelic-daemo}]
     |-nrsysmond---nrsysmond---{nrsysmond}
     |-portmap
     |-rpc.statd
     |-rsyslogd---3*[{rsyslogd}]
     |-searchd---searchd---2*[{searchd}]
     |-sshd-+-6*[sshd---sshd---sh---sftp-server]
     |      `-sshd---sshd---bash---pstree
     |-udevd---2*[udevd]
     `-zabbix_agentd---2*[zabbix_agentd]

Do you think I can safely stop/purge it?

sathia

Posted 2012-07-30T15:02:26.653

Reputation: 156

Answers

5

If you don't use NFS, yes, it's safe to remove it.

Diego Woitasen

Posted 2012-07-30T15:02:26.653

Reputation: 818

is NFS in any way related to SSHFS? because i really need to use SSHFS. thanks – sathia – 2012-07-30T15:11:40.463

I disabled portmap on each server and apparently it's all good. thanks – sathia – 2012-07-30T15:48:14.513

1There is no relation between sshfs and nfs. – Diego Woitasen – 2012-07-30T16:04:31.507

1Having the portmapper running and ignored is also a potential security risk, so I'd disable it unless absolutely required (like any other service). – XTL – 2012-12-03T14:41:51.300