6

Could someone tell me if the following command is permanent?

xhost +local:

or is it reset after I close the application, session or reboot?

or do I need to run afterwards the following command to undo the one above?

xhost -
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
dr.nukular
  • 61
  • 1
  • 2

1 Answers1

5

This is definitively not permanent and belongs to the affected X server. If this X server is restarted this setting is lost.

If you want to remove this setting, restart X server or use your command above:

xhost -localhost

(or xhost - to remove all access rights)

ChristophS
  • 565
  • 5
  • 13