Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
1
Help us understand the problem. What are the problem?

More than 5 years have passed since last update.

screen(1) の起動問題ワークアラウンドのメモ

Ubuntu 14.04。しばらく使っていると、一般ユーザで screen(1) (GNU Screen) が起動しなくなる。その際には、tmux(1) も動かない。root ユーザであれば起動する。

$ screen
[screen is terminating]

screen(1) 利用中に「No more PTYs」と出ることも多いので pseudo terminal の使い尽くしかと思ったが、そうでもないようだ。

$ cat /proc/sys/kernel/pty/{nr,max}
28
4096

何なんでしょうね。strace(1) すると S ビットが無視されるようなので、現象が再現しづらいですし。

再現性が低いために、未解決ぎみ。 ∥ Bug 813607 – cannot use screen in xterm as user, root appears to work

とりあえずのワークアラウンド。 ∥ screen terminates immediately

$ ll /usr/bin/screen
-rwxr-sr-x 1 root utmp 421768 11月  8  2013 /usr/bin/screen
$ sudo chmod u+s /usr/bin/screen
$ ll /usr/bin/screen
-rwsr-sr-x 1 root utmp 421768 11月  8  2013 /usr/bin/screen
$ screen
Directory '/var/run/screen' must have mode 755.
$ sudo chmod 755 /var/run/screen

では。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
1
Help us understand the problem. What are the problem?