Tmux:can't Create Socket: Permission Denied

my tmux’s sockets are output to the dir “~/tmp”, however today I encountered the problem saying “can’t create socket: Permission denied” while I start tmux.

The reason is I have changed the rights on the folder ~/tmp/tmux* , so after the following command:

1
chmod 700 -R tmux*

It is back to normal.