title: Access X11 display from empty environment (bash)
body: <p>Greetings!</p>
  
  <p>I am implementing a backup solution, and I need to access the X11 display for getting a password from the user and displaying status information. I have tried setting $DISPLAY in the script to :0.0 (hardcoded), but xhost and misc complain that they cannot open the display. What should I do?</p>
  
  <p>PS: The script is here: <a href="http://dpaste.com/109435/" rel="noreferrer">http://dpaste.com/109435/</a></p>