5

I'm not sure what happened. A few days ago I installed some updates and now i get an error whenever I try to run sudo nautilus. If I run gksudo nautilus it hangs for a few seconds then does nothing.

enter image description here

Anyone else had the same issue, or know how to fix it? A similar thing happens when trying to run sudo gedit as well...

attempts to sudo other apps: enter image description here

Sudoers as requested: enter image description here

$DISPLAY and sudo sudo -V as requested: enter image description here enter image description here

jacobian
  • 61
  • 2
  • 4

1 Answers1

3

OK, unchanged output of sudo sudo -V shows this:

Environment variables to preserve:
    XAUTHORIZATION
    XAUTHORITY
    TZ
    PS2
    PS1
    PATH
    LS_COLORS
    KRB5CCNAME
    HOSTNAME
    HOME
    DISPLAY
    COLORS

But your output says to preserve ftp_proxy, http_proxy, and https_proxy (note that all the others are gone).

Note also that your sudoers file says

Defaults env_keep="http_proxy https_proxy ftp_proxy"

That's not there by default, so either you or someone else with access to the system added it. You could try commenting it out (sudo visudo, then add # in front of that line and save the file). Sudo should work fine after that.

If you're sure you need those variables, you can append (instead of clobbering and overwriting) env_keep by using += instead of =:

Defaults env_keep+="http_proxy https_proxy ftp_proxy"

Read man sudoers for a lot of detail on all this :)

roadmr
  • 34,222
  • 9
  • 81
  • 93
  • I put the proxy stuff there myself. (this is my work computer and we are behind a proxy)

    *edit by there I dont mean in that file.. I set it up in my .bashrc file and environment variables. should I still comment it out in this file?

    – jacobian May 16 '12 at 22:03
  • The Defaults line in /etc/sudoers is what keeps it from working. If you want sudo to work but also need those variables, use the last line I suggest with Defaults env_keep+=, that should allow you to use your additional variables and have sudo working correctly. – roadmr May 17 '12 at 16:22