Joined: 03 Mar 2006 Posts: 47 Location: Simpsonville, SC
We need to execute some Unix Shell Scripts via BPXBATCH in our production environment. These Jobs run under a special ID via the USER= JCL Verb on the Job statement. When we attempt to run them we get an the standard error about not able to change to the Home Directory
FSUM1004 Cannot change to directory </u/userid>
Now I've been talking with our local support folks about this, but at this time, since this is a special user id and not a normal TSO user Id, we are unsure of how to define or create the Home Directory. So why question is twofold.
1) Can a shell script be executed without have a Home Directory? Is there another method besides BPXBATCH?
2) How can we create a Home Directory for this special Id?
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
1. I don't see how -- a UNIX shell script requires something be present in Unix System Services.
2. There are two parts to your answer: the first part depends upon whether or not you use automount. If so, the directory should automatically be created when the user id is accessed. If not, you'll need to manually create the home directory with the OMVS mkdir /u/userid command. The second part is that the RACF profile (if your site doesn't use RACF, the other security packages also have mechanisms to do this) for the user id must be update to include the home directory and shell program (typically /bin/sh).
Joined: 03 Mar 2006 Posts: 47 Location: Simpsonville, SC
Robert Sample wrote:
1. I don't see how -- a UNIX shell script requires something be present in Unix System Services.
2. There are two parts to your answer: the first part depends upon whether or not you use automount. If so, the directory should automatically be created when the user id is accessed. If not, you'll need to manually create the home directory with the OMVS mkdir /u/userid command. The second part is that the RACF profile (if your site doesn't use RACF, the other security packages also have mechanisms to do this) for the user id must be update to include the home directory and shell program (typically /bin/sh).
#1 Yep, thats the consensus we've come to internally.
#2 That seems to be the rub. This is a special Id and as such does not have a HLQ alias defined with its name in the Catalog. Normally we would just create a PRODID.xxxx.HFS zFS File System (where xxxx is the Node name) and it would be auto mounted. Thats how we do it for normal users, but again, this is a special user id and its not defined to the catalog. Now it does have the OMVS Segement set for RACF, but I'll have to check with the Security folks to determine the Home Directory settings.