Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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

では。

knaka
パソコンが好き。
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした