- PR -

cmdtoolコマンドで画面が開かない

1
投稿者投稿内容
くつ
常連さん
会議室デビュー日: 2004/05/05
投稿数: 30
投稿日時: 2004-09-27 15:00
cmdtoolコマンドを使って、画面を開こうとしています。
しかし、下記のように、xhostコマンドで許可を
与えようとしても与えることができません。
# SunOS 5.8

-----------------------------------------------
$ hostname
hoge
$ env
DISPLAY=hoge:0.0
$ /usr/openwin/bin/cmdtool
Xlib: connection to "hoge:0.0" refused by server
Xlib: Client is not authorized to connect to Server
XView error: Cannot open connection to window server: hoge:0.0 (Server package)
$ /usr/openwin/bin/xhost
Xlib: connection to "hoge:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/openwin/bin/xhost: unable to open display "hoge:0.0"
$ /usr/openwin/bin/xhost +
Xlib: connection to "hoge:0.0" refused by server
Xlib: Client is not authorized to connect to Server
/usr/openwin/bin/xhost: unable to open display "hoge:0.0"
$ /usr/openwin/bin/cmdtool
Xlib: connection to "hoge:0.0" refused by server
Xlib: Client is not authorized to connect to Server
XView error: Cannot open connection to window server: hoge:0.0 (Server package)
-----------------------------------------------
1)どのようにすればよいのでしょうか?
また、
2)xhostコマンドで許可を与えた場合には、
  どのユーザでもcmdtoolを利用して画面を開くことができるのでしょうか?

よろしくお願いします。
1

スキルアップ/キャリアアップ(JOB@IT)