I configured slurm.conf on our machine with
AccountingStoreFlags=job_script,job_comment
So that people can run
sacct -Bj <job_ID>
and check what the batch script was for the specified job_ID.
This works fine for root and works great for many users (who can see their own job scripts, but not those of other users, as it ought to be).
Unfortunately, for several users (but not even close to half of the users of the machine), the sacct -Bj command returns nothing, like if they queried someone else's job, even when querying their own.
Does anybody have any clue on what might be wrong and triggering this odd behavior? Thanks!