mountd port?

Asked by tmerriam

I'm having trouble getting mountd to bind to a specified port so that I can get it through the firewall. I see where mountd is called in nfs-kernel-server and that it reads RPCMOUNTDOPTS, but when I have RPCMOUNTDOPTS="-p 32767" mountd starts on a random port anyway. From the shell, I can do rpc.mountd -p 32767 and it takes it, but I was wondering how to get the official script to work. Any suggestions?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu firestarter Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shane Rice (shane2peru) said :
#1

After editing the /etc/init.d/nfs-kernel-server you need to restart nfs-kernel-server with:
sudo /etc/init.d/nfs-kernel-server restart
after that you can use
rpcinfo -p
and check to make sure mountd is bound to the correct port. It worked for me.

Shane

Revision history for this message
Shane Rice (shane2peru) said :
#2

See here:
http://ubuntuforums.org/showpost.php?p=7959294&postcount=17

for a more complete tutorial.

Shane

Can you help with this problem?

Provide an answer of your own, or ask tmerriam for more information if necessary.

To post a message you must log in.