After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 375331 - Nautilus hangs when used with sudo (dbus related)
Nautilus hangs when used with sudo (dbus related)
Status: RESOLVED OBSOLETE
Product: nautilus
Classification: Core
Component: general
2.16.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-11-14 22:49 UTC by Tim Vismor
Modified: 2010-07-21 20:53 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Tim Vismor 2006-11-14 22:49:59 UTC
sudo nautilus --browser

just hangs until you kill it with Ctl-C (no nautilus window displayed, no
warnings or error messages written to the console).

This is with rawhide as of 11/14/06, ie.

[vismor@azalea ~]$ rpm -q dbus
dbus-1.0.0-1.fc7
[vismor@azalea ~]$ rpm -q nautilus
nautilus-2.16.2-5.fc7
[vismor@azalea ~]$ rpm -q gnome-vfs2
gnome-vfs2-2.16.2-2.fc7
[vismor@azalea ~]$ rpm -q gtk2
gtk2-2.10.6-1.fc7

For what it's worth, gedit hangs in a similar manner if you open the file browser.
 
Similar behavior (with console error messages) has been apparent since July 2006. I don't know if this change in behavior is related to the issues at the heart of the recent flame fest between Daniel Stone and Havoc Pennington on the D-Bus list. 

See Redhat bugzilla for more details including console errors and a backtrace (https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=199748).
Comment 1 Tim Vismor 2007-01-04 16:06:33 UTC
Apparently, this behavior is intentional. See the thread http://lists.freedesktop.org/pipermail/dbus/2006-December/006691.html

If this is the case, this bug should be closed. Although I suggest prominent documentation of the work-around suggested in the thread. It's not clear to me that most users would expect sudo to fail for all programs using gnome-vfs.
Comment 2 Marcus Carlson 2010-07-21 20:53:20 UTC
Seems to work in 2.30. Closing as OBSOLETE. Feel free to reopen if you still encounter this problem.