tmux启动报错can’t create socket: Permission denied

今天在linux上准备开个后台窗口使用的是tmux

结果直接报错can’t create socket: Permission denied  刚开始以为inode满了..一看还早着呢

使用strace –e trace=file  tmux

execve(“/usr/bin/tmux”, [“tmux”], [/* 31 vars */]) = 0
access(“/etc/ld.so.preload”, R_OK)      = -1 ENOENT (No such file or directory)
open(“/etc/ld.so.cache”, O_RDONLY)      = 3
open(“/lib64/libutil.so.1”, O_RDONLY)   = 3
open(“/lib64/libncurses.so.5”, O_RDONLY) = 3
open(“/usr/lib64/libevent-1.4.so.2”, O_RDONLY) = 3
open(“/lib64/librt.so.1”, O_RDONLY)     = 3
open(“/lib64/libc.so.6”, O_RDONLY)      = 3
open(“/lib64/libtinfo.so.5”, O_RDONLY)  = 3
open(“/lib64/libresolv.so.2”, O_RDONLY) = 3
open(“/lib64/libdl.so.2”, O_RDONLY)     = 3
open(“/lib64/libnsl.so.1”, O_RDONLY)    = 3
open(“/lib64/libpthread.so.0”, O_RDONLY) = 3
open(“/etc/localtime”, O_RDONLY)        = 3
access(“/bin/bash”, X_OK)               = 0
access(“/home/lijun/.tmux.conf”, R_OK)  = -1 ENOENT (No such file or directory)
mkdir(“/tmp//tmux-0”, 0700)             = -1 EEXIST (File exists)
lstat(“/tmp//tmux-0”, {st_mode=S_IFDIR|0711, st_size=4096, …}) = 0
can’t create socket: Permission denied

/tmp目录下的确存在/tmux-0的目录,这个可能是某次意外的中断或者系统导致的,果断删除再tmux就正常了…正常的情况下是这样的

execve(“/usr/bin/tmux”, [“tmux”], [/* 32 vars */]) = 0
access(“/etc/ld.so.preload”, R_OK)      = -1 ENOENT (No such file or directory)
open(“/etc/ld.so.cache”, O_RDONLY)      = 3
open(“/lib64/libutil.so.1”, O_RDONLY)   = 3
open(“/lib64/libncurses.so.5”, O_RDONLY) = 3
open(“/usr/lib64/libevent-1.4.so.2”, O_RDONLY) = 3
open(“/lib64/librt.so.1”, O_RDONLY)     = 3
open(“/lib64/libc.so.6”, O_RDONLY)      = 3
open(“/lib64/libtinfo.so.5”, O_RDONLY)  = 3
open(“/lib64/libresolv.so.2”, O_RDONLY) = 3
open(“/lib64/libdl.so.2”, O_RDONLY)     = 3
open(“/lib64/libnsl.so.1”, O_RDONLY)    = 3
open(“/lib64/libpthread.so.0”, O_RDONLY) = 3
open(“/etc/localtime”, O_RDONLY)        = 3
access(“/bin/bash”, X_OK)               = 0
access(“/home/lijun/.tmux.conf”, R_OK)  = -1 ENOENT (No such file or directory)
mkdir(“/tmp//tmux-0”, 0700)             = -1 EEXIST (File exists)
lstat(“/tmp//tmux-0”, {st_mode=S_IFDIR|0700, st_size=4096, …}) = 0
lstat(“/tmp”, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=2609152, …}) = 0
lstat(“/tmp/tmux-0”, {st_mode=S_IFDIR|0700, st_size=4096, …}) = 0
lstat(“/tmp/tmux-0/default”, {st_mode=S_IFSOCK|0660, st_size=0, …}) = 0
getcwd(“/tmp”, 4096)                    = 5

此条目发表在Experience分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已用*标注