All users getting "error creating /tmp//tmux-1003 (Permission denied)" when using tmux

tmux used to work, but i forgot exactly what I did on the server to cause all users to not being to use tmux. I’m getting the errors for 2 different users:

error creating /tmp//tmux-1003 (Permission denied)

and

error creating /tmp//tmux-1006 (Permission denied)

What is causing this issue?

Change permissions for /tmp to 1777. (the leading 1 will set the sticky bit ie. t in drwxrwxrwt so that only creators of files can delete them) Run this:

sudo chmod 1777 /tmp

Then see if it works.

Answered By: Artur Meinild
Categories: Answers Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.