`

sudo为其他用户时再用screen失败的解决方案

 
阅读更多

今天处理一个问题时使用screen -r xxx,结果失败并且报:

Cannot open your terminal '/dev/pts/16' - please check.

 

不明白啥意思,google了一下,原因是当sudo之后,存在两个用户共用一个终端的情况,所以有两种解决办法:

1. 退出sudo/su

2. 执行scripts /dev/null来获取当前终端的使用权

 

参考:http://makandracards.com/makandra/2533-solve-screen-error-cannot-open-your-terminal-dev-pts-0-please-check

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics