[問題] tmux 不能正常啟動

看板Linux作者 (拒看低質媒體)時間10年前 (2015/10/05 12:19), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/1
大家好, 上週的某天開始,我在一台Ubuntu 14.04 Server上的tmux 就無法新增window/session 而只要我在輸入: `tmux` ,螢幕就會跳出62;9;c 另外若用root帳號,開tmux是成功的,而一般使用者底下則都會失敗, 並且有一樣詭異的62;9;c 的錯誤訊息。 我嘗試google,但是找到的解法都沒用。 另一個可能的方向,是permission的問題,所以我在bash輸入: `strace -f -e trace=file tmux` 並且得到以下的log: ``` execve("/usr/bin/tmux", ["tmux"], [/* 26 vars */]) = 0 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libtinfo.so.5", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/usr/lib/x86_64-linux-gnu/libevent-2.0.so.5", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 access("/bin/bash", X_OK) = 0 access("/home/users/wush/.tmux.conf", R_OK) = 0 mkdir("/tmp//tmux-1000", 0700) = -1 EEXIST (File exists) lstat("/tmp//tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 lstat("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0 lstat("/tmp/tmux-1000", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0 open("/tmp/tmux-1000/default.lock", O_WRONLY|O_CREAT, 0600) = 5 unlink("/tmp/tmux-1000/default") = 0 Process 18202 attached Process 18203 attached [pid 18203] open(0x7ff2a80a75b4, O_RDWR <unfinished ...> [pid 18202] +++ exited with 0 +++ [pid 18201] --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18202, si_status=0, si_utime=0, si_stime=0} --- [pid 18203] <... open resumed> ) = 6 [pid 18201] getcwd("/home/users/wush", 4096) = 17 [pid 18203] unlink(0x7fff56b274c2) = -1 ENOENT (No such file or directory) [pid 18203] stat(0x7ff2a902b200, {...}) = 0 [pid 18203] chmod(0x7ff2a902b200, 0140660) = 0 [pid 18203] unlink(0x7ff2aae8ca60) = 0 [pid 18203] access(0x7ff2a8df5c4d, R_OK) = -1 ENOENT (No such file or directory) [pid 18203] open(0x7ff2aae8c610, O_RDONLY) = 5 [pid 18203] readlink(0x7fff56b23550, 0x7ff2aaebe020, 4095) = 11 [pid 18203] stat(0x7ff2aaebe020, {...}) = 0 [pid 18203] stat(0x7ff2aaebc860, 0x7ff2aaebdbd0) = -1 ENOENT (No such file or directory) [pid 18203] stat(0x7ff2aaebc87b, {...}) = 0 [pid 18203] stat(0x7ff2aaebc889, {...}) = 0 [pid 18203] stat(0x7ff2aaebc897, {...}) = 0 [pid 18203] access(0x7fff56b220a0, R_OK) = -1 ENOENT (No such file or directory) [pid 18203] access(0x7fff56b220a0, R_OK) = 0 [pid 18203] open(0x7fff56b220a0, O_RDONLY) = 8 [pid 18203] open(0x7ff2a80ab01c, O_RDWR) = -1 EACCES (Permission denied) [pid 18203] open(0x7fff56b21f00, O_RDWR) = -1 ENOENT (No such file or directory) +++ exited with 0 +++ ``` 我猜測是最後那幾個動作導致tmux啟動失敗, 可惜在child process中strace沒有自動解出指標的filepath。 (我是不是漏了什麼參數呢?) 請問各位還有沒有什麼建議呢? ps. 我很想重開機,但是這是多人共用的server,所以目前無法重開... -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 220.133.224.51 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1444018762.A.570.html

10/05 12:58, , 1F
tmux 有使用到/tmp底下做存取,確認一下/tmp底下的權
10/05 12:58, 1F

10/05 12:58, , 2F
限吧
10/05 12:58, 2F
文章代碼(AID): #1M4VfALm (Linux)
文章代碼(AID): #1M4VfALm (Linux)