"root" pictures may be previewed by other users
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nautilus (Ubuntu) |
Invalid
|
Low
|
Ubuntu Desktop Bugs |
Bug Description
Binary package hint: nautilus
1) Copy some picture, for example, "1.jpg", to your home folder (also, for example).
2) Change "1.jpg" file access to (-rw-------), so only root can open this file for reading/writing and others cannot.
3) Open Home Folder in Nautilus. You cannot open this photo with the EYE of GNOME (for example)
4) Set "View as Icons" and you can preview this picture in nautilus.
ProblemType: Bug
Architecture: amd64
Date: Sat May 24 15:40:43 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/nautilus
NonfreeKernelMo
Package: nautilus 1:2.22.2-0ubuntu6
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=
SourcePackage: nautilus
Uname: Linux 2.6.22-14-generic x86_64
I think this a rather generic problem with image previews. We cache thumbnails early and often, and thumbnails are still considered valid for images that can't be read by the user if the file path checksum matches a thumbnail's name and the mtime of the file hasn't changed. A fix here would be to flush the thumbnail if we can't read the source file when we enter the folder, but that might incur performance penalties. As a work around you could touch the file after changing the permissions as that would trigger a re-thumbnail, which would generate a failed thumbnail as the file can't be read. Need to check libgnome and nautilus upstream to see if this is a known issue, or possibly a regression from Nautilus 2.20 (Launchpad is going down now, though).