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.
We won't give out pretty much any comments/descriptions for this post because we want to keep it small :) First, install a bunch of stuff: sudo apt-get install apache2 sudo apt-get install mysql-server sudo apt-get install php5 libapache2-mod-php5 php5-mysql Later, restart your apache so that it loads all modules (php,…
So, you are a system administrator on a Fedora or a CentOS GNU/Linux machine and a user requests that you upgrade their account to allow the execution of privileged commands using sudo. Warning Be very careful to which users you give this right! Being in the Sudoers list allows particular…
find $LOCATION -name "$FILENAME" -exec somecommand '{}' \; The above command will search in $LOCATION for all files named $FILENAME and apply the command that you define at somecommand. The argument ‘{}’ inserts each file found into the somecommand syntax. The \; argument indicates the exec command line has ended…
not working…
>If ‘xgd-su’ is not a typo you can use command-not-found to lookup the package that contains it, like this:
cnf xgd-su
Hello
xgd-su is not a typo, it is a script that is part of the xdg-utils package xdg-utils
Hi.
I don’t know if xgd-su is a typo or not but it didn’t work for me. xdg-su worked though.