Skip to content

root unable to delete due to trash unavailable(?)

Submitted by whatmeurgent

Assigned to Jannis Pohlmann

Link to original bug (#7617)

Description

Summary: A file copied to a vfat usb drive by root can not be deleted by root, but can be deleted by an unprivileged user. (I think this is a cool little bug)

  1. As an unprivileged user, Mount a vfat usb drive
  2. Open thunar (instance #1 (closed)) and navigate thunar to the usb drive
  3. Open a terminal and su ; thunar & (instance #2 (closed))
  4. navigate to /root
  5. select a file, and ctrl-c
  6. change focus to thunar instance #1 (closed) (showing usb drive)
  7. ctrl-v [this results in an access permission error. One might argue that this is a bug, but I think it's reasonable to call it a security feature, possibly isolating and protecting root's clipboard buffer from a non-privileged process].
  8. change focus to thunar instance #2 (closed) (su)
  9. ctrl-n to create instance #3 of thunar, with root privileges
  10. navigate thunar instance #3 to the usb
  11. ctrl-v - works [as it should]
  12. try deleting the file from that same thunar instance #3 - error message is trash not found or unavailable.
  13. change focus to thunar instance #1 (closed) (the one without root privileges)
  14. try deleting that same file - it works!

Summary: A file copied to a vfat usb drive by root can not be deleted by root, but can be deleted by an unprivileged user. (I think this is a cool little bug)

Version: 1.2.1

See also

Edited by Alexander Schwinn