0

This is a very stupid question but how can we set up /var/tmp? Is there a special way to do it or will just creating the directory suffice?

  • https://unix.stackexchange.com/questions/30489/what-is-the-difference-between-tmp-and-var-tmp @Gearge M. – fixit7 Nov 10 '22 at 22:06

1 Answers1

0

Like /tmp, it should have the sticky bit set so that files can only be delete by their owner, and it should be world-writable:

mkdir /var/tmp && chmod 01777 /var/tmp
Stephen Kitt
  • 434,908