Tmux fails to start with
error creating /run/user/$(id -u)/tmux-1000 (No such file or directory)
But starts fine under root
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this community
TMUX_TMPDIR
set in your user environment?TMUX_TMPDIR=/tmp
, which AFAIK is the "traditional" value (and appears to be what tmux uses on Ubuntu 20.04 under WSL1)TMPDIR
set (notTMUX_TMPDIR
)? That would explain why it is happening for bothtmux
andscreen
. I'm running WSL2 (and WSL1) Ubuntu 20.04 and both are correctly using/tmp/tmux-1000
. Figuring out why temp files are trying to go to/run
is pretty much the core issue, it sounds like.export TMUX_TMPDIR='/tmp'
in my .zshrc worked on openSuse Tumbleweed with tmux 3.2