I have a program that needs to generate temporary files. It is written for cluster machines.
If I saved those files to a system-wide temporary directory (eg: /tmp), some users complained the program failed because they didn't have proper access to /tmp. But if I saved those files to the working directory, those users also complained they didn't want to see those mysterious files.
Which one is a better practice? Should I insist that saving to /tmp is the right approach and defend any failure as "working as intended" (ie. ask your admin for proper permission/access)?
/tmpon a Unix-like system, it's misconfigured. The superuser should do something likechmod 1777 /tmp. – musiphil yesterday/tmp/, which you should use instead. See some of the answers ;) – marcelm 23 hours ago