OpenSuse: Sudo Error: Cannot Connect to X Server 3


When you call a command like this:

sudo someCommand

and you get an error message saying Cannot Connect to X Server, while if you executed that command without the sudo it would execute properly, you can resolve this issue by replacing «sudo» with «xgd-su -u root -c» resulting the following command:

xgd-su -u root -c someCommand

xdg-su provides a graphical dialog that prompts the user for a password to run a command as another user.

Advertisements

This post is also available in: Αγγλικα

Απάντηση

Αυτός ο ιστότοπος χρησιμοποιεί το Akismet για να μειώσει τα ανεπιθύμητα σχόλια. Μάθετε πώς υφίστανται επεξεργασία τα δεδομένα των σχολίων σας.