xhost 是用来控制X server访问权限的。
通常当你从hostA登陆到hostB上运行hostB上的应用程序时,
做为应用程序来说,hostA是client,但是作为图形来说,
是在hostA上显示的,需要使用hostA的Xserver,所以hostA是
server.因此在登陆到hostB前,需要在hostA上运行xhost +
来使其它用户能够访问hostA的Xserver.
xhost + 是使所有用户都能访问Xserver.
xhost + ip使ip上的用户能够访问Xserver.
xhost + nis:user@domain使domain上的nis用户user能够访问
xhost + inet:user@domain使domain上的inet用户能够访问。
[root@ds1 ~]# xhost +192.168.0.1
192.168.130.196 being added to access control list
[root@ds1 ~]# su - oracle
[oracle@ds1 ~]$ xhost +192.168.0.1
192.168.0.1 being added to access control list
后来注销切换到oracle的用户登录,则可以运行runInstall了
[oracle@ds1 ~]$ xhost +192.168.0.1
192.168.0.1 being added to access control list
[oracle@ds1 ~]$ cd clusterware/
[oracle@ds1 clusterware]$ ls
cluvfy doc install response rpm runInstaller stage upgrade welcome.html
[oracle@ds1 clusterware]$ ll