LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-18-2014, 12:04 PM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Mint, MX, antiX, SystemRescue
Posts: 2,337

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
Security of .thumbnails subdirectory?


I have a ton of files, 50,000+, in my thumbnails subdirectory ($HOME/.thumbnails). I was wondering what these are thumbnails of? I expect most of them come from the file manager (Thunar in my case), gthumb, etc.

I ask, because there are a few sensitive things I have stored as images on my computer. Things like marriage licenses, social security cards, select pages from tax returns, etc. These sensitive documents are stored encrypted (truecrypt), but I was wondering if this .thumbnail directory and its gigantic amount of contents is a possible security leak. For example, I may use truecrypt to mount an encrypted container, but then I use the file manager, gthumb, and other applications to view these things. Are all these applications creating thumbnails? Thumbnails aren't going to contain as much resolution as the original images, but in some cases they could contain enough to represent a problem, especially the "large" thumbnails.

So, how do you manage this .thumbnail stuff? Can you just delete the entire .thumbnail subdirectory if you have concerns about security? I assume it will be automatically recreated and repopulated. Thumbnails would be handy in some situations, but a potential security liability in others, if indeed they are created willy-nilly as I am assuming.
 
Old 05-18-2014, 12:30 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,636

Rep: Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652Reputation: 2652
they are just thumbnail images of images

so if you do not want anyone seeing small versions of photos or videos ........
delete them or use "shred" on them
 
Old 05-18-2014, 04:24 PM   #3
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,675

Rep: Reputation: Disabled
I use a cronjob to remove older than three days.
 
Old 05-18-2014, 04:44 PM   #4
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
It does pose a security risk and so I have located and turned off thumbnailing functionality of the file manager and image viewer. Technically, I wrote my own image viewer, because many write temporary files to disk even if they aren't thumbnails. However, viewnior works well and doesn't write files to disk.
 
Old 05-20-2014, 02:16 PM   #5
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
You could see what happens if you make ~/.thumbnails a symbolic link to /dev/null I've not tried it myself. Or you could make ~/.thumbnails a symbolic link to a directory in somewhere that gets wiped on boot. /tmp/ may mounted as tmpfs or on disk depending on your distro and if the latter, it may or may not be wiped on boot depending on your distro. If it's not wiped on boot you could make it be. /dev/shm/ is in RAM so certainly will be cleared on boot. Note that you'd have to put something in place to ensure that the target directory gets recreated after boot, you could do that in ~/.bash_profile or somewhere like that.


Note that the Thumbnail Managing Standard now conforms to XDG Base Directory Specification so on at least some current distros thumbnails are stored in ${XDG_CACHE_HOME}/thumbnails/ If $XDG_CACHE_HOME isn't set thumbnails are in ~/.cache/thumbnails/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove subdirectory? kadiyam Linux - General 2 05-24-2012 12:53 PM
Print thumbnails gonzojd7 Linux - Newbie 2 08-20-2008 07:38 PM
where is my subdirectory blotch Linux - Newbie 22 06-18-2005 11:43 AM
Deleting thumbnails from /root/thumbnails directory moxieman99 Linux - Newbie 3 10-19-2004 03:45 PM
sftp subdirectory how to ?? x2000koh Linux - General 1 12-16-2002 01:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration