Error on accessing root trash

Bug #1519059 reported by UlfZibis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nemo
New
Undecided
Unassigned
nautilus (Ubuntu)
Opinion
Low
Unassigned

Bug Description

- Run Nautilus/Nemo with gksudo.
- create a file/folder in /root.
- Right-Click and choose "Move to Trash"
--> the file disappears as expected.
- some days later ...
- Run Nautilus/Nemo with gksudo.
- Click on Trash
--> error message: Content of »trash:///« cannot be displayed.

The files can be found in /root/.local/share/Trash/ or in case of external volume in .Trash-0/.

IMO, if user can successfully move files to trash, there should be a reliable trash access to recover or finally delete files.
Otherwise, "Move to Trash" should be disabled in case of gksudo.

Revision history for this message
UlfZibis (ulf-zibis) wrote :

I now have found out, that the root trash is working as expected, if nemo/nautilus is started with "gksudo dbus-launch".
So if not started with dbus-launch, the error message after clicking "Trash" should be changed to a hint, that the application should be started with "gksudo dbus-launch".

Additionally in Nemo, the action "Open as root" should be fixed accordingly.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for it's not recommended to use nautilus or any other graphical application under sudo and not a supported usecase

Changed in nautilus (Ubuntu):
importance: Undecided → Low
status: New → Invalid
Revision history for this message
UlfZibis (ulf-zibis) wrote :

I didn't use nautilus under sudo, I used gksudo, which is recommend in many forums and wikis e.g.: https://help.ubuntu.com/community/RootSudo#Graphical_sudo

Changed in nautilus (Ubuntu):
status: Invalid → New
Revision history for this message
Sebastien Bacher (seb128) wrote :

right, the point is that graphical applications are not meant to be used as superuser, it's insecure and leads to integration issue. There is ongoing work to teach nautilus to use proper mechanisms to do actions that require extra privilege which is a better way

Changed in nautilus (Ubuntu):
status: New → Opinion
UlfZibis (ulf-zibis)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.