Detoxing your operating system

LSO Cookies

Another annoying "feature" that can waste a lot of space over time is the increasingly popular LSO cookies. These Flash cookies, so known because of their proximity to Adobe's Flash Player files, are primarily used for detailed logging of a user's individual surfing habits. Compared with their traditional text-based cousins, LSO cookies are not only significantly bigger but also remain on the system even longer. They also represent a data protection problem because they are difficult to remove manually from the system.

To get rid of these curious memory hogs, users with Firefox need the BetterPrivacy plugin from the Mozilla page [5]. After installation, a window appears when you close the web browser, asking you to select an approach for handling the existing LSO cookies. The recommended approach is to enable the Delete Flash cookies on Firefox exit option in the Options & Help tab of the plugin's settings dialog.

The path to enter for locating the LSO cookies, if the software does not automatically detect the correct path, is ~/.macromedia. You can access the plugin's LSO Manager in Firefox via the Tools  | Add-ons  | Extensions menu. This shows you a list of LSO cookies still present on the system in the browser. At the bottom of the LSO Manager tab, you will also see an indication of how many Flash cookies were automatically removed from your system (Figure 6).

Figure 6: Keeping out Flash cookies with BetterPrivacy.

Because Flash cookies can settle everywhere in the system where the Flash player or some compatible application resides, regardless of the browser you use, you need to remove these pests manually if you use any web browser other than Firefox or Iceweasel.

The easiest way to deny Flash cookies access to the system manually is to lock the storage folder. On Linux, LSO cookies usually end up in the hidden ~/.macromedia/Flash_Player/#SharedObjects/ directory. By entering the command chmod -R 400 .macromedia/ from the home directory of the logged-in user, you can lock the folders recursively for storage access. From now on, the Flash Player will be unable to store cookies in the designated directory, thus saving valuable space.


Even Linux systems tend to put on weight over time, and countless logfiles, cache files, temporary data, and privacy-invading software off the Internet aggravate this tendency. On heavily used systems, orphaned files are often hidden away, wasting valuable space. Last, but not least, is the danger of accidentally storing duplicates.

Armed with the JDiskReport, Sweeper [6], and BleachBit tools, as well as the BetterPrivacy add-on for Firefox and Iceweasel, you can put your system on an effective diet that makes a slender, high-speed sprinter out of an installation that is approaching obesity after long use.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Disk Cleaners

    You wouldn’t believe how much of the disk space on your system is wasted, filled with duplicate files, or cruft you don’t need.

  • Keep Your System Clean with BleachBit
  • BleachBit

    Many Linux services and applications create a continuous log of their activities. BleachBit cleans up the resulting log files conveniently and efficiently.

  • Privacy Tools

    Maybe you can't stop the NSA, but you can still take meaningful steps to protect your privacy.

  • Stacer

    Stacer simplifies the configuration and maintenance of Linux for newcomers by allowing users to handle most of these tasks conveniently in a graphical interface.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More