I am having some trouble to change the default tmpdir from /var/tmp to another location, such as /scratch/tmp (a different hard drive). I try editing either /etc/pbs.conf or mom_priv/config, or both, but none of them works. My pbs.conf:
set this as PBS_TMPDIR in the /etc/pbs.conf , restart the pbs services on the compute node.
If it works, then there must be some sticky bit set for /scratch/tmp (from the RAID or mount )
namei -mo /scratch
namei -mo /scratch/tmp
Another thing to check: You say /scratch/tmp comes from a different drive. You need to make sure the local mount point is mode 0755. That is, unmount /scratch/tmp and /scratch then check the modes on each directory:
umount /scratch/tmp # Might get "not mounted" error
umount /scratch # ditto
ls -ld /scratch /scratch/tmp