bsubmit
Submits jobs as another user.
Synopsis
bsubmit --user user_name command [arguments]Description
The bsubmit command is a wrapper for the bsub command that allows you, as the job submission user, to submit jobs as another job execution user. The bsubmit wrapper has the setuid bit enabled and is owned by root. This is useful if you want the job submission user to be a particular user, but to map the job execution user to other users.
To use this command, you must download and deploy the bsubmit executable file, which is a wrapper for the bsub command. For more details, refer to the following link: https://github.com/IBMSpectrumComputing/lsf-utils/tree/master/bsubmit
To define the execution users to which you can map submission users, create a configuration file named lsf.usermapping in the $LSF_ENVDIR directory to define the user mapping policy for the bsubmit command. The lsf.usermapping file allows you to map several job execution users and user groups to a single submission user or user group. 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.
#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.
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
Options
- --user user_name
- Required. Specifies the job execution user to which the job is mapped.
- -h
- Prints command usage to stderr and exits.
- -V
- Prints LSF release version to stderr and exits.