In our HPC setup where Slurm is installed, after a user logs in using ssh, a script is executed where a job is submitted using srun with an interactive bash. The script is placed on .profile and the user cannot modify it. This is the contents of the bash script file.
srun -A <ACCOUNT_NAME> -p --mem=< MEMORY> --time=HH:MM:SS -N <NUM_NODES> --gres=gpu:<NUM_GPU> --pty /bin/bash -i
Is there a way to prevent this user from bypassing slurm? Since the user can perform scancel on the job id anyway. Or is there a way to prevent the user from performing the scancel command?
Please advise. Thank you.