PTF SO06149 , among other things, provides the GSVUJVMD sample
jobstream to add the new CNM4JVMD DDDEF to the SMP/e environment.
It also creates the ../CNM4JVMD/CA directory structure by first setting UMASK to 0000, then issuing mkdir with the -p switch to create the ../CNM4JVMD/CA directory, as well as the intermediate CNM4JVMD directory, s it did not previously exist, and specifies permissions of 775.
However, the combination of the UMASK setting, the use of the -p switch, and documented mkdir processing results in the permissions for the intermediate CNM4JVMD directory being set to 777. Is this the correct behavior ?
If not what is the correct setting ?
Release : 15.0
Component : SYSVIEW
The cause is the Sample JCL provided in new member GSVUJVMD that issues :
//*=====================================================
//* Create the USS directory for CNM4JVMD
//*=====================================================
//CR8DIR EXEC PGM=BPXBATCH,COND=(0,NE)
//STDERR DD SYSOUT=*
//STDOUT DD SYSOUT=*
//STDPARM DD *,SYMBOLS=EXECSYS
SH umask 0000;
cd &PATHPFX/sysview/cnm4f00;
mkdir -p -m 775 CNM4JVMD/CA;
The permissions can be set to read only for the "other" permissions on the directory.
Write access is not necessary for these users. So the intermediate CNM4JVMD directory can be set to 775.