LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2009, 06:18 AM   #1
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78
Blog Entries: 8

Rep: Reputation: Disabled
Angry rpc.rquotad is using port number 993


I have just uncommented the line in the /etc/dovecot.conf
Code:
protocols imaps imap pop3 pop3s
.

In /etc/exports;
I just exported a directory

I did start the nfs service & portmap service without any problem. But; when i tried to start the dovecot service; the following error occurred.
Code:
Stopping Dovecot Imap:                                     [FAILED]
Starting Dovecot Imap: Fatal: listen(993) failed: Address already in use
                                                           [FAILED]
On running the netstat -tanp | grep 993 command; i got the following output ->

Code:
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      2485/rpc.rquotad
This output is baffling me.
I am unable to understand; why rpc.rquotad is using 993 port?
 
Old 04-22-2009, 12:02 PM   #2
vikas027
Senior Member
 
Registered: May 2007
Location: Sydney
Distribution: RHEL, CentOS, Ubuntu, Debian, OS X
Posts: 1,305

Rep: Reputation: 107Reputation: 107
Lightbulb

Quote:
Originally Posted by Mr. ameya sathe View Post
I have just uncommented the line in the /etc/dovecot.conf
Code:
protocols imaps imap pop3 pop3s
.

In /etc/exports;
I just exported a directory

I did start the nfs service & portmap service without any problem. But; when i tried to start the dovecot service; the following error occurred.
Code:
Stopping Dovecot Imap:                                     [FAILED]
Starting Dovecot Imap: Fatal: listen(993) failed: Address already in use
                                                           [FAILED]
On running the netstat -tanp | grep 993 command; i got the following output ->

Code:
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN      2485/rpc.rquotad
This output is baffling me.
I am unable to understand; why rpc.rquotad is using 993 port?

This does not happen normally, what you can try is
- first stop nfs service
- verify whether 993 is port is freed or not
- start dovecot service
- start nfs service

I think this will work.
 
Old 04-23-2009, 12:53 AM   #3
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
from the man page on BSD

"The port that the service is made available on can be specified using the nfs.server.rquota.port option in nfs.conf(5)."

The man page for my linux distribution does not mention this, it only mentions using the -p flag to specify an arbitrary port.
 
Old 04-23-2009, 03:36 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Online
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 51
nfs uses random ports unless you tell it to use fixed ports. Indeed you can configure your own port numbers in your sysconfig/nfs (your nfs config file)
 
Old 04-26-2009, 05:33 AM   #5
Mr. ameya sathe
Member
 
Registered: Jul 2007
Distribution: RedHat Enterprise 5 Server Edition; Ubuntu 8.04 ; RHCE Certificate number: 805008741034103
Posts: 78

Original Poster
Blog Entries: 8

Rep: Reputation: Disabled
Exclamation This worked :)

Quote:
Originally Posted by vikas027 View Post
This does not happen normally, what you can try is
- first stop nfs service
- verify whether 993 is port is freed or not
- start dovecot service
- start nfs service

I think this will work.
It worked. But; it has given rise to few more fundamental questions.

1) So; does this means; that NFS service is so brazen; that it would use even the IANA port assignments.
in the name of random assigning of the ports.?

Following statement is found in RFC 1700.
Quote:
Portmap does not allocate ports, the kernel allocates ports. The code
that does this is part of nearly every UNIX system in the world (and
since the BSD code is 'free' it is often the same code). RPC services
ask the kernel to allocate them a port by calling the "bind()" system
call. The parameter they pass is "INADDR_ANY" which means "allocate
me any IP port you want". The kernel does that by looking at all of
the ports that are currently in use and picking one that is not
currently used. The number picked is either less that 1024 if the
process is privledged, or greater than 1024 if the process is not
privledged. After the kernel has allocated a port, the service
registers this allocation with portmap. The portmapper is merely a
registry of previously allocated ports. Note "allocated" here is
being used in the sense that they are used by an open socket, not
assigned a well known name.
This statement has amazed me. It means; next time; whenever I want to start any new service in my system.

- first stop portmap service

- verify whether the assigned port is freed or not

- start new service

- start portmap service.


Any other opinions are welcome.
 
Old 02-09-2013, 11:07 PM   #6
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
I'm a bit late on replying, but this thread was recently referenced in a support post elsewhere, so I thought the information could be useful here. Have a look at http://rlworkman.net/howtos/NFS_Firewall_HOWTO for some discussion on binding NFS-related stuff to specific ports.
 
  


Reply

Tags
dovecot, kernel, nfs, portmap



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
Is there rpc.rquotad in SUSE 10 ? fanner Linux - Software 0 05-26-2008 04:07 AM
NFS RPC: Port mapper failure - RPC: Unable to receive KEJP Linux - Networking 6 12-18-2006 02:14 AM
RedHat 9 . rpc.rquotad info wombatz Linux - Networking 2 06-01-2004 08:13 PM
"connection refused" on port 993, when not coming from localhost spam4scott Linux - Networking 2 07-14-2003 06:35 AM
NFS quotas rpc rquotad wlfdgcrkz Linux - Software 0 06-08-2003 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:35 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