LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2016, 01:46 AM   #1
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Rep: Reputation: 11
Post What happened if I disable "rpcbind"?


Hello.
When I scan my Debian 8.6 via "Nmap" then it show me port 111 is open. If I disable "rpcbind" then what happened? Can it cause any problem?

Code:
$ nc localhost -v 111
localhost [127.0.0.1] 111 (sunrpc) open
Thank you.
 
Old 12-06-2016, 03:43 AM   #2
gradinaruvasile
Member
 
Registered: Apr 2010
Location: Cluj, Romania
Distribution: Debian Testing
Posts: 731

Rep: Reputation: 158Reputation: 158
I dont't know why are you concerned about processes listening on localhost (meaning there is no access to that port from outside).
But if you really want, you can see whaich package is involved.

First of all find out what process is using it:
run as root:
Code:
netstat -tunlp | grep 111
ps ax | grep PROCNUM
dpkg --search EXECUTABLE
PROCNUM = process number seen on the previous command putput.
EXECUTABLE = the executable with full path of the above process number.
Then examine that package with aptitude show or whatever.
 
Old 12-06-2016, 03:52 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,497

Rep: Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240
http://wiki.linuxquestions.org/wiki/Rpcbind
https://en.wikipedia.org/wiki/Portmap
you can find for example nfs uses it:
https://help.ubuntu.com/community/SettingUpNFSHowTo
 
Old 12-06-2016, 07:45 AM   #4
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Thus not have any danger???
 
Old 12-06-2016, 08:38 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,497

Rep: Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240Reputation: 7240
no, there is no any danger. do you need nfs or not? do you need anything which depends on rpcbind? But you can safely switch it off, that will not cause any danger. Probably something will not work, probably everything will work, but there is no danger. How do you expect any answer without knowing anything about your needs?
 
Old 12-06-2016, 09:37 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,555
Blog Entries: 4

Rep: Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888Reputation: 3888
There is no specific "danger" in a port being open on a server, if there is an actual reason for it to be so, and if that port is only available to the "outsiders" who ought to have access to it.

A port will only be accessible "to the outside world" if your router (which should of course have an active firewall ...) provides "port forwarding" of that port, directing it to some specific IP-address on your internal network.

A "default" Linux distro installation might well "conveniently" install many services (daemons) that you don't actually need. You therefore should as a matter of routine check that list and reduce it to only what you need to be running.
 
1 members found this post helpful.
Old 12-06-2016, 11:07 AM   #7
hack3rcon
Senior Member
 
Registered: Jan 2015
Posts: 1,432

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by pan64 View Post
no, there is no any danger. do you need nfs or not? do you need anything which depends on rpcbind? But you can safely switch it off, that will not cause any danger. Probably something will not work, probably everything will work, but there is no danger. How do you expect any answer without knowing anything about your needs?
I don't need nfs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
teamviewer "show black screen" and "disable remote input" in x11vnc ? alirezaimi Linux - Networking 1 02-07-2017 03:00 AM
[SOLVED] when I press "Ctrl+Z" and type "fg",what happened behind the program. mirage1993 Programming 1 04-19-2014 01:38 PM
[SOLVED] What happened to "round" and "pow" functions? worsel Programming 4 03-07-2011 10:46 AM
Nmap gives, "111/tcp open rpcbind" only, what is it ? frenchn00b Linux - Server 4 09-15-2009 02:05 AM
How do I disable "shutdown" and "restart" options in KDE logout screen for all users? maxgsp Linux - Distributions 1 12-12-2008 04:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration