1827620 Members
3253 Online
109966 Solutions
New Discussion

Re: xhost

 
Chakravarthi
Trusted Contributor

xhost

Hi,

how do i restrict people using "xhost +" command?

regards
chakri
3 REPLIES 3
Josef Forman
Frequent Advisor

Re: xhost

What kind of restriction?
You can prepare /etc/X0.hosts file. Here you can write down who will have access to the machine.

PF
Chakravarthi
Trusted Contributor

Re: xhost

i dont want users to use xhost + command instead they should use xhost +
Vitaly Karasik_1
Honored Contributor

Re: xhost

the only way I see it's writing a wrapper and replace original xhost with your wrapper.
in your wrapper you may check arguments.