Creating the /usr/lpp/ssh2
Directory
SSH Tectia Server for IBM z/OS always installs to /usr/lpp/ssh2
. You have
several options of how to create the ssh2
directory.
Option 1:
If you want to put the product into a separate HFS or ZFS file system,
make an empty ssh2
directory under /usr/lpp
:
> cd /usr/lpp
> mkdir ssh2
Create the file system and mount it on /usr/lpp/ssh2
. You can use
the CREAHFS
and MOUNHFS
examples from
SAMPLIB
(shown below). The sample files are
for HFS but ZFS can also be used. Note that mounting the file system causes
an operator query that must be responded to. You may want to copy the mount
command into the BPXPRMxx member in PARMLIB
so that the file system
is mounted each time you IPL the system.
CREAHFS:
//CREAHFS EXEC PGM=IEFBR14
//*
//* Allocate a dataset for a USS file system. The space allocated, 1300
//* cylinders, corresponds to about 1 GB on a 3390 device.
//*
//*
//HFS DD DSN=SSZ.TECTIA.SAMPLE.HFS,
// UNIT=SYSALLDA,
// SPACE=(CYL,(1300,1,5)),
// DSNTYPE=HFS,
// DCB=(DSORG=PO),
// DISP=(NEW,CATLG,DELETE)
|
MOUNHFS:
//*
//* REPLY nn,dddd ON THE MACHINE CONSOLE TO ALLOW MOUNT
//*
//MOUNT EXEC PGM=IKJEFT01,DYNAMNBR=75,TIME=100,REGION=6M
//*
//* Mount the file system on an existing, empty directory
//*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTERM DD DUMMY
//SYSUADS DD DSN=SYS1.UADS,DISP=SHR
//SYSLBC DD DSN=SYS1.BRODCAST,DISP=SHR
//SYSTSIN DD *
MOUNT FILESYSTEM('SSZ.TECTIA.HFS') +
MOUNTPOINT('/usr/lpp/ssh2') +
TYPE(HFS) +
MODE(RDWR)
/*
|
Option 2:
If you want to install the product into an existing file system, for
example the one where /opt
is mounted, make an empty directory
in that file system and create a link to it under /usr/lpp
:
> mkdir /opt/ssh_5_0
> cd /usr/lpp
> ln -s /opt/ssh_5_0 ssh2
Option 3:
If you do neither of the above, the product will go into the file system
where /usr/lpp
is. In all cases the path to the product will be
/usr/lpp/ssh2
.
Ensure that the /usr/lpp/ssh2
directory is writable and that it
is owned by the SSHD2
user:
> chmod 755 /usr/lpp/ssh2
> chown SSHD2:0 /usr/lpp/ssh2