LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Change RPC.RQUOTAD's port in Red Hat Linux 6.0 (https://www.linuxquestions.org/questions/linux-newbie-8/change-rpc-rquotads-port-in-red-hat-linux-6-0-a-4175430436/)

kizznewbie 10-04-2012 02:57 AM

Change RPC.RQUOTAD's port in Red Hat Linux 6.0
 
Hi Guys!
Please help me to change the RPC.RQUOTAD's port number in Red Hat Linux 6.0
I have tried to
Add the following two lines to the /etc/services file
Quote:

rquotad 4003/tcp

rquotad 4003/udp
and configure NFS services to use fixed ports by Opening /etc/sysconfig/nfs
my /etc/sysconfig/nfs file:
Code:

LOCKD_TCPPORT=32803
LOCKD_UDPPORT=32769
MOUNTD_PORT=892
RQUOTAD_PORT=4003
STATD_PORT=662
STATD_OUTGOING_PORT=2020

and then restart the nfs service, portmap service but the rquotad's port number still didn't change...
when i type "rpc.rquotad -p" i recieve this error: "invalid option -p"
please help me
thanks for any help
have a nice day

chrism01 10-04-2012 04:54 AM

The first qn is which port num do you want it to use; you've got 2 different ones there...
The default as per /etc/services is
Code:

rquotad        875/tcp                        # rquota daemon
rquotad        875/udp                        # rquota daemon

which matches the default setting in /etc/sysconfig/nfs.

Unless you've got a VERY good reason, I'd leave it as that.
If you insist on changing it, make sure you change both(!) files to match.

Assuming you have iptables on, you'll have to amend that to match as well.

kizznewbie 10-04-2012 06:10 AM

Quote:

Originally Posted by chrism01 (Post 4796872)
The first qn is which port num do you want it to use; you've got 2 different ones there...
The default as per /etc/services is
Code:

rquotad        875/tcp                        # rquota daemon
rquotad        875/udp                        # rquota daemon

which matches the default setting in /etc/sysconfig/nfs.

Unless you've got a VERY good reason, I'd leave it as that.
If you insist on changing it, make sure you change both(!) files to match.

Assuming you have iptables on, you'll have to amend that to match as well.

Hi Chris
I need to configure port number of RPC.rquotad because i need to configure firewall for NFS services to use fixed port!
I have made both file matched like u said but the port number still is a random number
I read this : http://www.lowth.com/LinWiz/nfs_help.html , it show that rquotad's port number is a random number so it doesn't have default value.
Anyway, thanks u a lot

chrism01 10-04-2012 06:37 AM

Please don't edit your orig post; it makes nonsense of my comment; please revert it to the original.
You need to edit the files, not your post.

In any case, setting those values there should work. Of course, you'll have to restart the nfs daemon etc.

kizznewbie 10-05-2012 01:37 AM

Quote:

Originally Posted by chrism01 (Post 4796964)
Please don't edit your orig post; it makes nonsense of my comment; please revert it to the original.
You need to edit the files, not your post.

In any case, setting those values there should work. Of course, you'll have to restart the nfs daemon etc.

sorry about this, i mean i change thoses files in the linux machine so i edit my post too. my files were edited and linux machine was restart too but the quotad's port number still didn't change...where's my problem...


All times are GMT -5. The time now is 04:41 AM.