创建screen时Cannot open your terminal '/dev/pts/19' - please check.

创建screen时Cannot open your terminal '/dev/pts/19' - please check.

时间:2013-08-21 10:08:55      作者:beebol      标签: screen shell      分类: Linux基础 Shell

在linux中使用screen时发生的问题,当时这个问题发生在redhat系统中,相信debian,centos,其它的都会出现。

[@WEB_ZW_72.48 ~]$ screen -S ding Cannot open your terminal '/dev/pts/19' - please check.

这句话的意思是不能打开/dev/pts/19这个终端,为 什么呢?后面才知道,我是su登录到这个用户下的,没有直接用这个用户登录。我一下就明白了,su过来后,当前这个用户是没有权限在/dev/pts/19这个终端去运行screen的。因为/dev/pts/19这个终端是之前用户登录时创建的,可以查看:

[@WEB_ZW_72.48 ~]$ id uid=500(user2) gid=500(user2) groups=500(user2)

[@WEB_ZW_72.48 ~]$ who op_user1  pts/19 2013-08-21 09:23 (10.6.48.18)

之前还以为是什么配置问题或screen权限什么的,其实是screen不能在su登录环境中工作。直接用这个用户和密码登录就没有问题。

时间:2013-08-21 10:08:55      作者:beebol      标签: screen shell      分类: Linux基础 Shell
  • 分享到:
  • 微博
  • QQ空间
  • 腾讯微博
  • 微信

Copyright © 2015 Gitblog | Proudly powered by Gitblog.