1847844 Members
2850 Online
104021 Solutions
New Discussion

about xhost,and sam

 
SOLVED
Go to solution
常有慈悲心
Regular Advisor

about xhost,and sam

1. what's mean of xhost+ ?what's the relation about xhost + and current user?

i use user1 to login ,and su - root
,when use sam -display hp13:0.0,

it tells must use xhost +
and i must return user1 to issue xhost + hp13:0.0

why?
2.why:when run sam ,there is no "cluster" program icon in the sam,
but use sam -r,there is a "cluster" program icon ?
2 REPLIES 2
Sridhar Bhaskarla
Honored Contributor
Solution

Re: about xhost,and sam

Hi,

'xhost' command manages authorization where you can allow remote x-programs to connect to your DISPLAY. When you login yourself in CDE, then *only you* (not your root session) on the local system will have the authority to run 'xhost' program. You have to login as root into your CDE if you want to run xhost as root.

To show it, start a new terminal, telnet to another system.

Terminal 1:

$telnet
$export DISPLAY=:0
$xclock

You should see an error 'connection refused' message.

Start another terminal and run 'xhost + '

Now run 'xclock' on the remote system in Terminal 1. you should see xclock of the remote system displayed on your local DISPLAY.

2. sam -r shows only the functions allowed and it may not have exactly the same root windows like sam. It may display the sub root programs as root icons depending on how the access is configured.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Sunil Sharma_1
Honored Contributor

Re: about xhost,and sam

X host is server access control program for X-windows. USing this you can control X-windows permission on clients. run xhost + on console before running xhost application like sam -display hp13:0.0

Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***