An unsecured port is one that is less then 1024 (or is it less then or equal?). 
 What you describe below sets the port for the server, not the client.

-----Original Message-----
From: Linux on 390 Port [mailto:[EMAIL PROTECTED] Behalf Of
McKown, John
Sent: Thursday, January 17, 2008 12:18 PM
To: [email protected]
Subject: Re: NFS mount of zLinux file system -- port


> -----Original Message-----
> From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On 
> Behalf Of Jon Brock
> Sent: Thursday, January 17, 2008 2:04 PM
> To: [email protected]
> Subject: NFS mount of zLinux file system -- port
> I am experimenting with mounting a Linux file system (RHEL 4, running
> under zVM) on z/OS.  I can get it to work, but it wants to use an
> unsecured port (4005, I think it was).  How can I get NFS on 
> z/OS to use
> a particular port?  Is it a matter of setting it in the 
> TCP/IP profile?
> Is it a parm entered on the MOUNT command?  
> 
> The manual has led me around in circles on this, but that may 
> be my own
> fault.
> 
> Thanks,
> 
> Jon

What is an "unsecured port"? Do you mean a port <1024? What does it
matter? In any case, to answer your question:

I am not authoritative on this by any means. The NFS server normally
requests a port from the portmapper daemon. This is usually an ephemeral
port. On my Fedora system (Intel), there is a file /etc/sysconfig/nfs.
In this file is a commented out line like:

#RPCNFSDARGS

This contains the parameters to be sent to rpc.mountd. This is the
process which requests a port. Looking at the info doc on rpc.mountd,
there is a parameter to specify the port to bind to. So, pick a port
which is currently unused on the Linux machine (say 1027) and update
this line to look like:

RPCNFSDARGS='--port 1027'

Then restart the NFS server (as root) via the command:

service nfs restart

Others may tell me that I'm full of little red ants. But that's how I
read the manual. The z/OS NFS client will then contact portmapper on the
Linux system and get port 1027 as the NFS port. 

--
John McKown
Senior Systems Programmer
HealthMarkets
Keeping the Promise of Affordable Coverage
Administrative Services Group
Information Technology

The information contained in this e-mail message may be privileged
and/or confidential.  It is for intended addressee(s) only.  If you are
not the intended recipient, you are hereby notified that any disclosure,
reproduction, distribution or other use of this communication is
strictly prohibited and could, in certain circumstances, be a criminal
offense.  If you have received this e-mail in error, please notify the
sender by reply and delete this message without copying or disclosing
it. 

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

________________________________________________________________________________________________________________

CONFIDENTIALITY NOTICE: This email from the State of California is for the sole 
use of the intended recipient and may contain confidential and privileged 
information.  Any unauthorized review or use, including disclosure or 
distribution, is prohibited.  If you are not the intended recipient, please 
contact the sender and destroy all copies of this email.  

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to