Ask your questions here.
Post a reply
wathkao

- wathkao
- Posts: 4
- Joined: Wed Jun 28, 2017 3:34 am

## How to delete all un-necessory SERVER and USER

Wed Jun 28, 2017 4:02 am

I am only use my computer for web browsering a little bit. For security reason, I would like to remove all the un-necessory SERVERs and USERs.
Since I don't want to provide any service from this computer, Should I delete all server?
Following is the recently open ports of my computer (offline):
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1339/rpcbind
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1829/cupsd
tcp 0 0 0.0.0.0:35799 0.0.0.0:* LISTEN 1367/rpc.statd
tcp6 0 0 :::111 :::* LISTEN 1339/rpcbind
tcp6 0 0 :::41876 :::* LISTEN 1367/rpc.statd
tcp6 0 0 ::1:631 :::* LISTEN 1829/cupsd
udp 0 0 0.0.0.0:666 0.0.0.0:* 1339/rpcbind
udp 0 0 127.0.0.1:695 0.0.0.0:* 1367/rpc.statd
udp 0 0 0.0.0.0:54558 0.0.0.0:* 1367/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1339/rpcbind
udp6 0 0 :::666 :::* 1339/rpcbind
udp6 0 0 :::38064 :::* 1367/rpc.statd
udp6 0 0 :::111 :::* 1339/rpcbind
so, looks like rpcbind/rpc.statd/cupsd still LISTEN to the ports. How can I find out what service are they? and can I delete them?
And also, I checked the definded USERs, so many of them, definitly some un-necessory, like "game".
which of them are necessory? and which of them should be delete?
Thanks
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: How to delete all un-necessory SERVER and USER

Wed Jun 28, 2017 12:48 pm

Try this first, and see what remains.

Code:
  `aptitude purge cups openssh-server nfs-common`

cups is the print server. You will not be able to print.
openssh-server runs ssh, so you won't be able to log into the computer from another computer.
nfs-common is for communicating with nfs-server. If you're not running a file-server on your local network, you don't need this.
If you're not using RAID, you can remove mdadm.
If you're not using LVM, you can remove lvm2.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.