我正在使用redhat openshift,现在发现一些问题:
a) 为什么默认屏幕无法支持包含太多字符的路径
[xxname-xxname.rhcloud.com ~]\> which screen
/usr/bin/screen
[xxname-xxname.rhcloud.com ~]\> screen -S l
LoginName too long - sorry.
[xxname-xxname.rhcloud.com ~]\> screen -S l
LoginName too long - sorry.
[xxname-xxname.rhcloud.com ~]\> ls
app-root git jbosseap-6.0 xxname
[xxname-xxname.rhcloud.com ~]\> cd jbosseap-6.0/jbosseap-6.0/tools/bin/
[xxname-xxname.rhcloud.com bin]\> ls
screen screen-4.1.0 screen-4.1.0.old screen.old tmux
b)为什么我没有访问 /dev/pts/0 的权限?
[xxname-xxname.rhcloud.com bin]\> ./screen-4.1.0 -S l
Cannot access '/dev/pts/0': Permission denied
更多细节:
[xxname.rhcloud.com ~]\> ls / -l
ls: cannot access /cgroup: Permission denied
ls: cannot access /lost+found: Permission denied
ls: cannot access /boot: Permission denied
ls: cannot access /net: Permission denied
ls: cannot access /misc: Permission denied
ls: cannot access /root: Permission denied
ls: cannot access /home: Permission denied
total 76
dr-xr-xr-x. 2 root root 4096 Sep 6 16:02 bin
d?????????? ? ? ? ? ? boot
d?????????? ? ? ? ? ? cgroup
drwxr-xr-x. 17 root root 3540 Sep 6 13:47 dev
drwxr-xr-x. 103 root root 12288 Sep 7 00:47 etc
d?????????? ? ? ? ? ? home
dr-xr-xr-x. 12 root root 4096 Sep 6 13:23 lib
dr-xr-xr-x. 9 root root 12288 Sep 6 16:02 lib64
d?????????? ? ? ? ? ? lost+found
drwxr-xr-x. 2 root root 4096 Jun 28 2011 media
d?????????? ? ? ? ? ? misc
drwxr-xr-x. 2 root root 4096 Jun 28 2011 mnt
d?????????? ? ? ? ? ? net
drwxr-xr-x. 5 root root 4096 Sep 6 11:55 opt
dr-xr-xr-x. 193 root root 0 Sep 6 13:46 proc
d?????????? ? ? ? ? ? root
drwxrwxrwt. 2 e13f3da3651c44758b254e5bc7bbdddb root 4096 Sep 6 17:13 sandbox
dr-xr-xr-x. 2 root root 12288 Sep 6 16:02 sbin
drwxr-xr-x. 7 root root 0 Sep 6 13:46 selinux
drwxr-xr-x. 2 root root 4096 Jun 28 2011 srv
drwxr-xr-x. 13 root root 0 Sep 6 13:46 sys
drwxrwxrwt. 3 e13f3da3651c44758b254e5bc7bbdddb root 4096 Sep 7 00:51 tmp
drwxr-xr-x. 14 root root 4096 Sep 6 11:51 usr
drwxr-xr-x. 22 root root 4096 Sep 6 11:43 var
[xxname.rhcloud.com ~]\> ls /dev/pts -l
ls: cannot access /dev/pts: Permission denied
答案1
快速谷歌搜索发现屏幕的旧限制,以及 openshift 登录名相当长。
试用tmux而不是替代方案。它应该在 Red Hat 存储库中可用。