Hi,
How can I submit job as root user?
When I log on root account and submiting job I get error:
qsub: Bad UID for job execution
I have job that using pigz to pack backup files and some of them has only root permisions to read, so I need to run this job as root user, how to do this ?
You can set acl_roots on the server to allow this, but it is discouraged. A better approach might be to configure sudo in such a way that the user running the job (non-root) can call it to run their specific command with elevated privileges.
Thank You mkaro, your suggestion to configure sudo was very helpful.
Adding user root to acl_roots does not solwing problem, because user root can’t connect via ssh, so pbs can’t send files between submit host and node. I do not want to change this configuration.
But when I configure sudo to run specific commands without prompting for password, it is running good.