lsf.usermapping

Defines the user mapping policy for the example bsubmit command.

Note that the bsubmit command is not included with LSF. To enable a job submission user to submit jobs as another job execution user, you download and deploy this example bsubmit command executable file, as it is a wrapper for the bsub command. To use the example bsubmit command, you build it from the source at: https://github.com/IBMSpectrumComputing/lsf-utils/tree/master/bsubmit.

The lsf.usermapping file allows you to map several job execution users and user groups to a single submission user or user group.

Create the lsf.usermapping file in the $LSF_ENVDIR directory. For each row, specify the submission user or group to the left and a comma-separated list of execution users or groups on the right. This file must be owned by the LSF administrator, with file permissions set to read-write for the owner and read-only for all other users. For each row, specify the submission user or group to the left and a comma-separated list of execution users or groups on the right.

For example:
#Submission user or group    # Execution users or groups
userA                        userB,userC,userD
groupA                       groupB

This lsf.usermapping configuration file means that the userA user can submit jobs as userB, userC, or userD. Users in the groupA group can submit jobs as any user in the groupB user group.

To submit jobs as other users, use the bsubmit command. For example, run the following command if the job submission user userA is submitting a job as job execution user userC:
bsubmit --user userC myjob