root unable to delete due to trash unavailable(?)
Submitted by whatmeurgent
Assigned to Jannis Pohlmann
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)
- As an unprivileged user, Mount a vfat usb drive
- Open thunar (instance #1 (closed)) and navigate thunar to the usb drive
- Open a terminal and su ; thunar & (instance #2 (closed))
- navigate to /root
- select a file, and ctrl-c
- change focus to thunar instance #1 (closed) (showing usb drive)
- 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].
- change focus to thunar instance #2 (closed) (su)
- ctrl-n to create instance #3 of thunar, with root privileges
- navigate thunar instance #3 to the usb
- ctrl-v - works [as it should]
- try deleting the file from that same thunar instance #3 - error message is trash not found or unavailable.
- change focus to thunar instance #1 (closed) (the one without root privileges)
- 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