** Lx Yu [2011-09-04 21:55:31 +0800]:

> hello, recently the tmux on my vps not working.

> When I type tmux, I get this error "create session failed: : No such file or 
> directory", but `sudo tmux` works.

> I googled but nothing works. any idea on this?

Seems problem with permissions.

Check if TMPDIR variable is set. If yes, then could you as user create
a directory in $TMPDIR.

If not, could you as user creat edirectory in /tmp?

(in bash syntax)
if [[ -n $TMPDIR ]]; then
  mkdir $TMPDIR/${UID} || echo "Don't have permission to create a directory"
else
  mkdir /tmp/${UID} || echo "Don't have permission to create a directory"
fi

---
WBR, Vladimir Lomov

-- 
You are absolute plate-glass. I see to the very back of your mind.
                -- Sherlock Holmes

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to