* Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2012-04-21 11:18, Basil Chupin wrote:
Marcus asked, "WHat is in the "Defaults env...." variables in your /etc/sudoers?".
I tried to replicate the problem, I have not edited sudoers. I do:
cer@Elanor:~> sudo yast --qt root's password: sudo: yast: command not found
Ok, the path.
cer@Elanor:~> sudo /sbin/yast --qt cer@Elanor:~> sudo /sbin/yast2 --qt cer@Elanor:~> sudo /sbin/YaST --qt
All three instances get the ncurses interface, not the qt interface - and I do get qt if I use "su -" instead.
I'm running xfce.
So, sudo is broken. What else? :-P
Only your understanding of what's going on is "broken". sudo and "su -l" are not equivalent, the former strips the environment and executes the command with root privileges while the latter starts a login shell as root which is granted access to your display via pam_xauth. And it's not a good idea to enable the latter for sudo by default because it cannot be controlled on a per-user basis by sudo. -- Guido Berhoerster -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org